Skip to content

Commit

Permalink
Merge pull request #2991 from yzcheung/fix/add_unquote_for_pages
Browse files Browse the repository at this point in the history
Added support for URL decoding of the search parameter for pages
  • Loading branch information
T4rk1n authored Oct 7, 2024
2 parents ef00323 + f2c5f0f commit a26eea5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ This project adheres to [Semantic Versioning](https://semver.org/).

- [#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)
- [#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)
- [#2991](https://github.com/plotly/dash/pull/2991) Add support for URL decoding of the search parameter for pages.

## [2.18.1] - 2024-09-12

Expand Down
3 changes: 2 additions & 1 deletion dash/_pages.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from fnmatch import fnmatch
from pathlib import Path
from os.path import isfile, join
from urllib.parse import parse_qs
from urllib.parse import parse_qs, unquote

import flask

Expand Down Expand Up @@ -113,6 +113,7 @@ def _infer_module_name(page_path):


def _parse_query_string(search):
search = unquote(search)
if search and len(search) > 0 and search[0] == "?":
search = search[1:]
else:
Expand Down

0 comments on commit a26eea5

Please # to comment.