Open relPermalinkOverride in new tab

I have a post which opens a HTML file and I implemented it using relPermalinkOverride:

If you open my projects site and click article “Price Elasticity” (see next screenshot), it opens a HTML file from relPermalinkOverride.

Problem with that: the HTML file is opened on the same tab.

Is it possible to change this behaviour for relPermalinkOverride, so that it opens in new tab?

Thank you in advance for any suggestions.

You really don’t want to do this. It’s annoying. See:
https://www.digital.ink/blog/website-links-new-tab/

If you want to do it anyway, modify the three theme templates that you modified here:
https://discourse.gohugo.io/t/hugo-showing-a-html-file-directly-after-clicking-one-post/44042/

1 Like

You are right that it is better not to open in new tab. I implemented “open in new tab” in some other places. I will remove them as well. Thanks for sending the the first link :slight_smile:

2 Likes

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.