diff --git a/frappe/website/path_resolver.py b/frappe/website/path_resolver.py index ebb05950565..4af49988c31 100644 --- a/frappe/website/path_resolver.py +++ b/frappe/website/path_resolver.py @@ -134,7 +134,7 @@ def resolve_redirect(path, query_string=None): for rule in redirects: pattern = rule["source"].strip("/ ") + "$" path_to_match = path - if rule.get("match_with_query_string"): + if query_string and rule.get("match_with_query_string"): path_to_match = path + "?" + frappe.safe_decode(query_string) try: