Link open in another tab
complete
Bob Joh
I have enabled "Open all external links in a new tab" (under Rendering > HTML > Core). But its not adding {target=_blank} in the API response of page content and its not working in new tab. When I checked the code by inspecting source in wiki.js, I can see {target=_blank} in <a> tag. But why its not there in the page source?
Nicolas Giard
Bob Joh because it doesn't change the page source. It's a frontend feature, not something that affects the original content.
Nicolas Giard
complete
Since update 2.2, it's possible to open all external links in a new tab (under Rendering > HTML > Core) or on a link by link basis by adding
{target=_blank}
at the end of a link.Jan
Nicolas Giard: Thanks for the feature. Should also the "navigation links" to external sites open in a new tab?
Alex Casassovici
I would by default open external links in new tab and wiki link in same tab
Nicolas Giard
Merged in a post:
Open Links in New Tab
Dave Tustin
When adding a navigation button, the page will open in the same tab. There is no option to open the page in a new tab/window.
David Aslan French
This is honestly like a bare minimum requirement. I kind of surprised that Wiki.js doesn't already have this feature considering all the other stuff it has.
M
Marcus Baw
+1 also for 'Open Links In New Tab By Default'
either as a global wiki option, a user-level option, or as some extension/modification of the Markdown parser, something like: