Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Commit

Permalink
Merge pull request #189 from zanata/rhbz1009755
Browse files Browse the repository at this point in the history
ensure version page url is rewritten regardless of parameter order
  • Loading branch information
Patrick Huang committed Sep 19, 2013
2 parents 20e3838 + b7edd89 commit 8f8cd62
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions zanata-war/src/main/webapp/WEB-INF/urlrewrite.xml
Expand Up @@ -380,10 +380,17 @@
<from>^(/.+)?/project/home.seam(.+)?$</from>
<to>$1/project/list$2</to>
</outbound-rule>

<!-- repeated to handle either param order (there should be a better way to do this) -->
<outbound-rule>
<from>^(/.+)?/iteration/view.seam\?projectSlug=([^&amp;]+)&amp;iterationSlug=([^&amp;]+)(&amp;(.+))?$</from>
<to>$1/iteration/view/$2/$3?$5</to>
</outbound-rule>
<outbound-rule>
<from>^(/.+)?/iteration/view.seam\?iterationSlug=([^&amp;]+)&amp;projectSlug=([^&amp;]+)(&amp;(.+))?$</from>
<to>$1/iteration/view/$3/$2?$5</to>
</outbound-rule>

<outbound-rule>
<from>^(/.+)?/iteration/source_files.seam\?project=([^&amp;]+)&amp;iteration=([^&amp;]+)(&amp;(.+))?$</from>
<to>$1/iteration/source_files/$2/$3?$5</to>
Expand Down

0 comments on commit 8f8cd62

Please sign in to comment.