Don't add extra / to url when we redirect to proper path in wman
This commit is contained in:
parent
5267263402
commit
fd2f9540c9
1 changed files with 1 additions and 1 deletions
|
|
@ -38,7 +38,7 @@ fn wman_init {
|
|||
if not if(~ $req_path $wman_base_uri^*/)
|
||||
handler_body_main=(tpl_handler apps/wman/page_list.tpl)
|
||||
if not if(~ $p(2) [A-Z]* [0-9][A-Z]*) # Correct badly capitalized links
|
||||
perm_redirect $wman_base_uri/^$p(1)^/^`{echo $p(2) |tr 'A-Z' 'a-z'}
|
||||
perm_redirect $wman_base_uri^$p(1)^/^`{echo $p(2) |tr 'A-Z' 'a-z'}
|
||||
}
|
||||
|
||||
# Search
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue