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?
Opening URL links on the message boards in new browser tabs
- Bottle Rocket - Liam
- DEV TEAM
- Reactions:
- Posts: 343
- Joined: Wed Jun 01, 2022 10:43 pm
- Location: Somewhere
- Contact:
Re: Opening URL links on the message boards in new browser tabs
Possible a Tick box appears somewhere in the settings.
I will add it to the list to look at.
Liam
I will add it to the list to look at.
Liam
Liam.
"One mine, three mining areas, a BEAST of an ore body"
"One mine, three mining areas, a BEAST of an ore body"