-
Notifications
You must be signed in to change notification settings - Fork 2.2k
fixes #1881: Open generatorUrl in a new browser tab. #2470
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
base: main
Are you sure you want to change the base?
Conversation
This PR is supposed to be associated with #1881 but it doesn't seem to be linked, I'm not sure if I did something wrong when creating the PR. |
The easiest way to link a PR to an issue is using a keyword in the PR description. |
Thank you for your response, @hooten. Doesn't the commit message title contain a properly formatted keyword? That was my intention by writing |
@dpryden my bad! You're right. It looks like the commit message did in fact link the issue. Sorry for the confusion |
I'm having the same issue where I have a nginx frontend and proxies to alertmanager or different prometheus-hosts based on path. |
would love to see this issue get fixed. can we fix conflicts and merge? i can create another PR if this has been abandoned. |
Sorry, I haven't looked at this PR in ages, I actually forgot it was still open. I just rebased it and regenerated the |
@simonpasquier, you were the one who added the |
There does not appear to be a good way to reliably determine in onUrlRequest whether the URL being navigated to is an Internal or External URL, especially if Alertmanager is hosted on the same domain as other services (for example, Prometheus). To workaround this problem for the specific case of the generatorUrlButton (labeled "Source"), we force it to have target="_blank", which prevents Elm from intercepting the URL and trying to do client-side navigation. Signed-off-by: Daniel Pryden <[email protected]>
Thanks for the fix @dpryden! @simonpasquier any way to get this reviewed/merged? |
There does not appear to be a good way to reliably determine in
onUrlRequest whether the URL being navigated to is an Internal or
External URL, especially if Alertmanager is hosted on the same domain as
other services (for example, Prometheus). To workaround this problem for
the specific case of the generatorUrlButton (labeled "Source"), we force
it to have target="_blank", which prevents Elm from intercepting the URL
and trying to do client-side navigation.
Signed-off-by: Daniel Pryden [email protected]