Fix redirect output if the path is relative.

travis
Raphaël Vinot 2015-03-19 13:16:08 +01:00
parent 00dea1c497
commit 99176cb91f
1 changed files with 4 additions and 0 deletions

View File

@ -207,6 +207,10 @@ def get_urls(url, depth=1):
base += ':{}'.format(port)
if not base.endswith('/'):
base += '/'
if not meta_redir_url.startswith('/'):
base += fex.resource_path()
if not base.endswith('/'):
base += '/'
meta_redir_url = base + meta_redir_url
for url in get_urls(meta_redir_url, depth):
yield url