question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Keeping anchors with ID hrefs in the same tab

See original GitHub issue

While the linksInNewTab option is awesome, I’d like it to only affect non-id hrefs. Opening a new tab with the same page but in a different scroll position doesn’t make for a great experience imho. I created a PR to fix this by checking the leading character of a link’s href attribute. Please let me know if this is something you are into @egoist or if there are changes you’d like me to make 👍

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:8 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
egoistcommented, Feb 8, 2018

sure 👍🏻please

0reactions
jozanzacommented, Feb 13, 2018

@egoist I made the change and bumped the version to 0.6.1, so I can fork docup and create a PR with an updated version of marked3. Let me know if you want any changes 👍

EDIT: Also here’s the docup PR. We’ll probably want to update the marked3 version in package.json after this PR is merged and a new version is published.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Link to anchor tag contained in a tab from another page & tab
I just found out how I can link to a specific peace of anchor tag using ID assignment. And now I also need...
Read more >
Anchor link inside same tab - JavaScript - SitePoint Forums
I re-wrote the script to handle going to specific links on any page that has the tabs by checking the fragment identifier if...
Read more >
HTML Anchors: Here's How To Create Links For Fast ...
Learn how to create HTML hyperlinks. This guide covers the anchor element and all of it's attributes.
Read more >
<a>: The Anchor element - HTML: HyperText Markup Language
The HTML element (or anchor element), with its href attribute, creates a hyperlink to web pages, files, email addresses, locations in the ...
Read more >
Linking to information in tabbed content - Canvas Community
When you link to the content page with your tabs, you will need to add the name of the anchor point for the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found