From 764c854519bcf4b1f9b8aa6722efd417261f8e8c Mon Sep 17 00:00:00 2001 From: Ethan Zhang Date: Mon, 9 Sep 2024 23:55:04 +0800 Subject: [PATCH 1/2] Added support for URL decoding of the search parameter for pages --- dash/_pages.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dash/_pages.py b/dash/_pages.py index ab97ba80df..5bf0c14fc7 100644 --- a/dash/_pages.py +++ b/dash/_pages.py @@ -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 @@ -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: From e82247bf5593a533ae229a7270f50ae9a9bbf148 Mon Sep 17 00:00:00 2001 From: Ethan Zhang Date: Thu, 3 Oct 2024 20:06:22 +0800 Subject: [PATCH 2/2] Changelog updated --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index cfb27c8d71..2b05940065 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,7 @@ This project adheres to [Semantic Versioning](https://semver.org/). ## Added - [#2881](https://github.com/plotly/dash/pull/2881) Add outputs_list to window.dash_clientside.callback_context. Fixes [#2877](https://github.com/plotly/dash/issues/2877). +- [#2991](https://github.com/plotly/dash/pull/2991) Add support for URL decoding of the search parameter for pages. ## Fixed