How can I change Autolinks target? Now it reuses tab or window, but I really hate it. Other vB links target new tab or window. Where can I change this behavior? And for future version could you enable option for us to choose target in admincp?
Printable View
How can I change Autolinks target? Now it reuses tab or window, but I really hate it. Other vB links target new tab or window. Where can I change this behavior? And for future version could you enable option for us to choose target in admincp?
Please, is there a way to open autolinks in new tab or window?
You can right click > Open in New Tab / Window. Otherwise no. They are treated exactly the same as internal links because they still link within the same web site. If you want to force an individual link to be treated as an external link, construct your tag like this:
To add it to all links you will have to make a plugin. This will make only autolinks open in a new tab, regular wiki links with the BB-Code will open in the same window unless the above tag is used.Code:[wiki=Title|BLANK]text[/wiki]
Hook location: vault_bbcode_link
Clicking "Read more" in the preview popup with still open it in the same window. The template for the popup is vault_article_preview.Code:if ($vault->parser['autolink_parse'])
{
$flags['BLANK'] = 1;
}
Thank you, I applied all changes, everything works fine. I only needed to delete postparsed table for change in plugin to become effective.