plotly / plotly/dash

Variable Path not accounting for HTML encoding

Open
#2,360 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug P3
Dominant language
Python
Stars
24.4k
Forks
2.3k
Avg merge
2d 7h
Merged PRs (30d)
13

Description

Describe your context

async-dash                0.1.0a1
dash                      2.7.0
dash-bootstrap-components 1.2.1
dash-core-components      2.0.0
dash-daq                  0.5.0
dash-extensions           0.1.5
dash-html-components      2.0.0
dash-iconify              0.1.2
dash-loading-spinners     1.0.0
dash-mantine-components   0.11.0a2
dash-table                5.0.0

Describe the bug

Variable paths are not working when they have been altered with html encoding during request process.
ie - /path/this is a test => /path/this%20is%20a%20test
variable path = this%20is%20a%20test

Expected behavior

/path/this is a test => /path/this%20is%20a%20test
variable path = this is a test

Please note, this is available within Flask to remove the html encoding

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing Dash's variable-path handling during request processing and compare its decoding behavior with Flask, which the issue identifies as handling this case. Done means a path such as /path/this%20is%20a%20test provides the variable value "this is a test" rather than the encoded string.

Written by the indexing model from the issue text.

Assessment

Tech stack
flask, python
Domain
backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.