Skip to content

Commit a26eea5

Browse files
authored
Merge pull request #2991 from yzcheung/fix/add_unquote_for_pages
Added support for URL decoding of the search parameter for pages
2 parents ef00323 + f2c5f0f commit a26eea5

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ This project adheres to [Semantic Versioning](https://semver.org/).
88

99
- [#2994](https://github.com/plotly/dash/pull/2994) Keep generated doc-string order for shape or exact props. Fixes [#2990](https://github.com/plotly/dash/issues/2990)
1010
- [#3011](https://github.com/plotly/dash/pull/3011) Fixed an exception error caused by assigning `None` to array properties with `exact` or `shape` element types. Fixes [#3010](https://github.com/plotly/dash/issues/3010)
11+
- [#2991](https://github.com/plotly/dash/pull/2991) Add support for URL decoding of the search parameter for pages.
1112

1213
## [2.18.1] - 2024-09-12
1314

dash/_pages.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
from fnmatch import fnmatch
77
from pathlib import Path
88
from os.path import isfile, join
9-
from urllib.parse import parse_qs
9+
from urllib.parse import parse_qs, unquote
1010

1111
import flask
1212

@@ -113,6 +113,7 @@ def _infer_module_name(page_path):
113113

114114

115115
def _parse_query_string(search):
116+
search = unquote(search)
116117
if search and len(search) > 0 and search[0] == "?":
117118
search = search[1:]
118119
else:

0 commit comments

Comments
 (0)