Notifications
Clear all

wpForo 1.x.x [Closed] Open all external links in a new navigation tab

16 Posts
3 Users
1 Likes
2,689 Views
Posts: 108
Topic starter
(@hector)
Estimable Member
Joined: 5 years ago

Hi community.

How do I make all external links that users place within topics and responses open in a new browser tab?

From antennamo I appreciate your response.

15 Replies
Posts: 1602
(@anonymous20)
Noble Member
Joined: 8 years ago

For me all links open by default to a new tab. Not sure why it doens't to some people.

In any case, it has been covered:

https://wpforo.com/community/how-to-and-troubleshooting-2/links-open-in-new-tab/#post-32317

 

Posts: 108
Topic starter
(@hector)
Estimable Member
Joined: 5 years ago

Thanks for your help @Anonymous20

Posts: 1602
(@anonymous20)
Noble Member
Joined: 8 years ago

@hector

By default (without any plugins):

https://www.google.com/

As you see above it opens to a new tab (same for you?).

The question is why it doesn't work in your setup. Have you tried the default theme for a while ? Any other plugin that could change the default link behavior in wpForo ?

1 Reply
VereK
(@verek)
Joined: 6 years ago

Honorable Member
Posts: 495

@anonymous20

Most urls are copy/pasted by members rather than typed in so no, it's not sorted at all and neither does that JS code posted in the other topic work.

Example 1: (straight paste - will not open in a new tab)

https://www.google.com/

Example 2: (paste as plain text [control+shift+v] will open in a new tab)

https://www.google.com/

Example 3: (typed url - will open in a new tab)

https://www.google.com

 

Not sure why this happens...

Posts: 1602
(@anonymous20)
Noble Member
Joined: 8 years ago

Also @hector i see here:

https://wpforo.com/community/how-to-and-troubleshooting-2/relnofollow-for-these-links-within-the-forum/

that probably you have modified some code ? Or use some plugin for rel no follow etc etc ? Can that be the cause ?

Page 1 / 3