Opening URL links on the message boards in new browser tabs
Posted: 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?
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?