Skip to content

Commit

Permalink
UNTESTED: ensuring base_direct optionally includes trailing slash
Browse files Browse the repository at this point in the history
  • Loading branch information
cmungall authored Jun 28, 2020
1 parent 947a58a commit ce5d5a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/translate_yaml.py
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ def translate_base_redirects(yamldoc):
if 'base_redirect' in yamldoc and type(yamldoc['base_redirect']) is str:
base_url = unquote(yamldoc['base_url'])
base_redirect = unquote(yamldoc['base_redirect'])
directive = 'RedirectMatch temp "(?i)^%s$" "%s"' % (base_url, base_redirect)
directive = 'RedirectMatch temp "(?i)^%s[/]$" "%s"' % (base_url, base_redirect)
return directive


Expand Down

0 comments on commit ce5d5a5

Please sign in to comment.