Skip to content

Commit

Permalink
Do not redirect URL matching home. A node could not be named home bec…
Browse files Browse the repository at this point in the history
…ause it also match an existing path.
  • Loading branch information
François Prunayre committed Sep 3, 2014
1 parent d4dad51 commit f294886
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/src/main/webapp/WEB-INF/urlrewrite.xml
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@
<to type="permanent-redirect" last="true">%{context-path}/home</to>
</rule>
<rule>
<from>^/([a-zA-Z0-9_\-]+)$</from>
<from>^/(?!home$)([a-zA-Z0-9_\-]+)$</from>
<to type="permanent-redirect" last="true">%{context-path}/home?node=$1</to>
</rule>

Expand Down

0 comments on commit f294886

Please sign in to comment.