Replies: 1 comment 1 reply
-
|
yeah this is a known quirk with GitHub actions summary links. the fragment gets stripped when navigating within the same tab because of how the SPA routing works. your workaround with target=_blank is solid. alternatively you could try using javascript onclick handlers but thats way more work for the same result. another option - just wrap the whole link in a code block so users naturally right-click and open in new tab. not ideal but it works. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Why are you starting this discussion?
Bug
What GitHub Actions topic or product is this about?
General
Discussion Details
I am producing workflow summaries that include links to file locations that triggered warnings or errors. However, clicking on the links in the summary seems to drop the fragment
#LxxCyy. Opening in a new tab works fine,so I'll work around this by addingEdit: GitHub strips thetarget="_blank"to the links.target="_blank"attribute away when rendering the page, so the workaround does not do anything!Example:
https://github.com/vlmantova/bookml/actions/runs/21005872307
Click on any of the
docs.texlinks.If you launch them in a new tab, they will go to the location in the file that triggered the message.

If you only click on the link while staying in the same tab, the link will lose the fragment and only point at the file, without scrolling to the line nor highlighting it.

Beta Was this translation helpful? Give feedback.
All reactions