Merge pull request #27200 from akhilnarang/fix-check-query-string-null
fix: check that query_string isn't null before trying to use it
This commit is contained in:
commit
9978d61a32
1 changed files with 1 additions and 1 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue