-
Hello, How do I edit link behavior? Right now. everything opens in a new tab which is kind of annoying. Is there a way to have links open in the current tab? And maybe have external links open in a new tab? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Internal links are always opened in the same window, external links are by default opened in another tab. This can be configured via |
Beta Was this translation helpful? Give feedback.
-
This helps a ton. Thanks for the clarification!
…On Thu, May 16, 2024 at 3:11 PM Sören Weber ***@***.***> wrote:
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.
—
Reply to this email directly, view it on GitHub
<#854 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AONIHOWI24OLNX6A5ZXJA6LZCUVH3AVCNFSM6AAAAABH27JKYWVHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM4TINRTGIZDK>
.
You are receiving this because you authored the thread.Message ID:
***@***.***
com>
|
Beta Was this translation helpful? Give feedback.
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.