plotly / plotly/dash

Preserve url parameters when following a dcc.Link

Open
#1,824 0 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

In a number of my apps I allow admin users to "ghost" in as other users using url parameters, i.e. myapp.com/?u=username. For multi-page apps it would be useful to (optionally?) maintain these parameters when following a Link. I imagine there are other use-cases for passing variables along between pages as well; this could be an alternative to using the Store feature, albeit in a more visible way.

For now I can use the flask args to parse parameters and append them to the href argument in the Link, but this feels hackey.

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 the dcc.Link entry point and how its href is handled during multi-page navigation. Define the optional URL-parameter preservation behavior described in the issue, then add coverage showing parameters survive Link navigation and verify that the existing use of Flask args remains unaffected.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
frontend, web-dev
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.