forked from MarseyWorld/MarseyWorld
fix this https://rdrama.net/post/18459/marseycapywalking-megathread-for-bugs-and-suggestions/4968005#context
parent
b0f6e81ccc
commit
19d5cd8a37
|
@ -45,6 +45,7 @@ def template_asset(ctx, asset_path):
|
|||
def template_change_arg(arg, value, url):
|
||||
parsed = urlsplit(url)
|
||||
query_dict = parse_qs(parsed.query)
|
||||
query_dict.pop('page', None)
|
||||
query_dict[arg] = value
|
||||
query_new = urlencode(query_dict, doseq=True)
|
||||
parsed = parsed._replace(query=query_new)
|
||||
|
|
Loading…
Reference in New Issue