posit-dev / posit-dev/py-shiny
Deep linking to tabs
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 1.8k
- Forks
- 135
- Avg merge
- 2d 18h
- Merged PRs (30d)
- 21
Description
Hi all,
we have had multiple occasions where it would have been great to be able to deep link to a specific tab within the shiny app.
Is this possible somehow? I have had a look at the available docs and Starlette, but I can't seem to figure out how to achieve this.
I have found this issue #741 , but there hasn't been any work and it does not do the exact same thing I am asking for.
What I am basically asking for:
Imagine you have an app with two navigation tabs/sheets (let's call them TabA and TabB).
I would like to be able to have links such as this:
http://YOUR_WEBSITE/TabA to reach the first tab and http://YOUR_WEBSITE/TabB to reach the second tab.
(or if you'd like: http://YOUR_WEBSITE/#TabA)
If I would just browse to / then I would get to the first mentioned tab.
This way we could actually share links to apps for users.
Any help would be appreciated.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reviewing the available Shiny documentation and the Starlette material mentioned in the issue, along with issue #741. Determine how tab navigation and URL routing currently relate; done means links such as /TabA or /#TabA open the corresponding tab, while / opens the first tab.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- frontend, web-dev
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100