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
Overall link situation #30891
Comments
There are 3 things we should get from this:
|
related to #30851 |
related to #25613 |
related to #30893 |
related to #30894 |
related to #30895 |
related to #28269 |
related to #32013 |
The fix #35975 should solve some of the problems here. We should wait until that fix was merged before attempting other fixes here. |
The link logic is a bit all over the place.
The three places should deal with similar kind of links which I link eventually should be consolidated, or at least, under the hood, calls the same utilities so we have a single place that handle links. |
As this issue is 10 months old and some issues are partially fixed by @WiNloSt, I will first reproduce the 3 issues indicated above and see which one is still an issue. |
I've verified that links to Metabase URLs (i.e. questions and dashboards) in link cards still opens in a new tab when embedded. However, links in tables now opens correctly in the same embedded view. I'll create a fix for the link cards so they open in the same view tomorrow. For the second issue regarding relative links per #30894, it appears that relative links are no longer highlighted in table views. Would this be the expected behaviour @albertoperdomo? If so, we should consider closing #30894 as it no longer applies. I'll take a look at sub-issue 3 (clicking on link cards that have an absolute link in embedding + metabase working on a sub-path fails) tomorrow. |
Sounds good!
I left a comment there after spending a few minutes reproducing. It's still an issue based on current master, but I think someone from DashViz could look at it. |
Thanks! I created a fix for the first issue. For the third issue, I believe it is already covered and fixed by #32731, but it would be good to double-check and verify this. |
Was accidentally closed by #41508 |
We huddle about this @oisincoveney |
BTW: this needs to be updated now that there were many fixes |
Describe the bug
Wanted to make an entire issue regarding links:
Overal situation:
made a dashboard that has:
link cards to an internal dashboard and an internal question
link cards to an absolute url and a relative url
link card to the same Metabase URL of the second card, but as an absolute URL instead of a URL that was generated with autocomplete
a table with absolute and relative urls, and also urls that take you to Metabase resources (both absolute and relative)
Situation 1:
go to that dashboard inside Metabase (not embedding)
Situation 2 (testing with https://github.com/metabase/sso-examples):
go to that dashboard from within a full app embedding (Metabase runs on the root path)
Situation 3 (testing with https://github.com/paoliniluis/metabase-subpath):
go to that dashboard inside Metabase which is on a sub-path, but not embedded
Situation 4 (testing with https://github.com/paoliniluis/metabase-subpath) :
go to that dashboard from within a full app embedding but Metabase is on a sub-path
works the same as situation 2
Situation 4:
go to that dashboard from a signed embedding
works the same as situation 5
Situation 5:
go to that dashboard from a public link
works the same as situation 1 and 3, but whenever you hit Metabase it asks for authentication
Situation 6 (a deviation from situation 3):
let's say that you have your app running on app.something.com, and metabase running in app.something.com/mb/
If you put a link to app.something.com, Metabase will open it on the same iframe, because it believes that it's the same application. Cause is #30895
To Reproduce
NA
Expected behavior
NA
Logs
NA
Information about your Metabase installation
Severity
P2
Additional context
NA
The text was updated successfully, but these errors were encountered: