Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

page_link URL preview shows file path instead of URL path #8080

Closed
3 of 4 tasks
sfc-gh-jcarroll opened this issue Feb 5, 2024 · 1 comment · Fixed by #8086
Closed
3 of 4 tasks

page_link URL preview shows file path instead of URL path #8080

sfc-gh-jcarroll opened this issue Feb 5, 2024 · 1 comment · Fixed by #8086
Labels
feature:st.page_link priority:P2 status:confirmed Bug has been confirmed by the Streamlit team type:bug Something isn't working

Comments

@sfc-gh-jcarroll
Copy link
Collaborator

sfc-gh-jcarroll commented Feb 5, 2024

Checklist

  • I have searched the existing issues for similar issues.
  • I added a very descriptive title to this issue.
  • I have provided sufficient information below to help reproduce this issue.

Summary

When I use st.page_link in an app and hover over the link, the URL preview in the bottom left of my browser shows the FILE path from root instead of the expected URL page path.

Reproducible Code Example

Can also see this repro on: https://page-link.streamlit.app/

import streamlit as st

# Need a second page
st.page_link("pages/page2.py", label="Page with weird preview")

"Open this app, hover over the page link and check the preview"

Steps To Reproduce

See above

Expected Behavior

I see e.g. localhost:8501/page2

Current Behavior

I see localhost:8501/mnt/src/pages/page2.py or similar

Is this a regression?

  • Yes, this used to work in a previous version.

Debug info

  • Streamlit version: 1.31
  • Python version: 3.11
  • Operating System: Mac
  • Browser: Chrome

Additional Information

No response

@sfc-gh-jcarroll sfc-gh-jcarroll added type:bug Something isn't working status:needs-triage Has not been triaged by the Streamlit team labels Feb 5, 2024
Copy link

github-actions bot commented Feb 5, 2024

If this issue affects you, please react with a 👍 (thumbs up emoji) to the initial post.

Your feedback helps us prioritize which bugs to investigate and address first.

Visits

@sfc-gh-jcarroll sfc-gh-jcarroll added status:confirmed Bug has been confirmed by the Streamlit team feature:st.page_link priority:P2 and removed status:needs-triage Has not been triaged by the Streamlit team labels Feb 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature:st.page_link priority:P2 status:confirmed Bug has been confirmed by the Streamlit team type:bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant