misc: fix redirection of URL with query strings in --http mode (#8131)
This commit is contained in:
parent
b255cad176
commit
f646ba1bc0
|
@ -832,7 +832,11 @@ class AlternateRootDirectory(OldRootDirectory):
|
|||
|
||||
uri_rest = get_request().environ.get('REQUEST_URI')
|
||||
if not uri_rest:
|
||||
# REQUEST_URI doesn't exist when using internal HTTP server
|
||||
# (--http)
|
||||
uri_rest = get_request().get_path()
|
||||
if get_request().get_query():
|
||||
uri_rest += '?' + get_request().get_query()
|
||||
if uri_rest.startswith(base_url):
|
||||
uri_rest = uri_rest[len(base_url):]
|
||||
if f.category_id:
|
||||
|
|
Reference in New Issue