Skip to content

Open internal links in current tab and external links in new tab. #854

Answered by McShelby
DavidVargasxyz asked this question in Q&A
Discussion options

You must be logged in to vote

Can internal links be opened in the current tab instead of a new tab?

They are. The question here is: What does the theme think, is an internal link? Anything that does not start with a protocol specification in the URL.

So if you use [website setup](https://perfectdarkmode.com/posts/2023/03/building-a-minimalist-website-with-hugo/) it will be handled as external link. Use relative links instead.

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@DavidVargasxyz
Comment options

@McShelby
Comment options

Answer selected by McShelby
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
discussion This issue was converted to a discussion
2 participants
Converted from issue

This discussion was converted from issue #853 on May 16, 2024 18:52.