Opening URL links on the message boards in new browser tabs

Post a reply

Smilies
:D :) ;) :( :o :shock: :? 8-) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :!: :?: :idea: :arrow: :| :mrgreen: :geek: :ugeek:

BBCode is ON
[img] is ON
[url] is ON
Smilies are ON

Topic review
   

Expand view Topic review: Opening URL links on the message boards in new browser tabs

Re: Opening URL links on the message boards in new browser tabs

by Bottle Rocket - Liam » Thu Jun 30, 2022 7:34 pm

Possible a Tick box appears somewhere in the settings.
I will add it to the list to look at.

Liam

Opening URL links on the message boards in new browser tabs

by Spondy » Thu Jun 30, 2022 10:21 am

When clicking on links in posts the target loads and takes the user away from the ggpchat site.

Can you change the link so that the target URL is opened in a new browser tab?

This change will keep users on site and avoid having to right click links to select 'open link in new tab' from the menu.


The <a> </a> tags can use the target attribute to open the link in a new browser tab. The rel attribute is use for security to prevent pagenapping.

target="_blank"
<a href="https://ggphelp.co.uk/">GGP Help</a>
<a href="https://ggphelp.co.uk/" target="_blank">GGP Help</a>

rel="noreferrer noopener"
<a href="https://ggphelp.co.uk/" target="_blank" rel="noreferrer noopener">GGP Help</a>

This would work if you are writing the HTML. However on the message boards it would need to apply to all URLs posted in messages. Is there a way that these attributes can be 'turned on' for the site?

Top