Changeset 7428

Show
Ignore:
Timestamp:
03/16/09 10:13:04 (17 months ago)
Author:
josowski
Message:

Made the regular expression for generating the "thisPage" variable a little less greedy.

References #1141

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • head/ambra/webapp/src/main/webapp/global/global_header.ftl

    r7406 r7428  
    2525  <@s.url id="thisPageURL" includeParams="get" includeContext="true" encode="false"/> 
    2626  <#-- remove duplicate articleURI specification, e.g. /article/doi?articleURL=doi --> 
    27   <#if thisPageURL?matches(r"^(/.+)?/article.+/info(:|%3A)doi(/|%2F).+")> 
     27  <#if thisPageURL?matches(r"^(/.+)?/article.*/info(:|%3A)doi(/|%2F).+")> 
    2828    <#assign thisPage = thisPageURL?replace(r"\??articleURI=info%3Adoi%2F.{30}", "", "r")?replace("&amp;", "&")?url> 
    2929  <#-- dont to anything if we're already on the feedbackCreate.action page -->