Some external links...
 
Notifications
Clear all

wpForo 1.x.x [Closed] Some external links do not open in a new navigation tab

7 Posts
4 Users
0 Reactions
1,205 Views
Posts: 108
Topic starter
(@hector)
Estimable Member
Joined: 6 years ago

Hello community.

I come from this topic: https://wpforo.com/community/how-to-and-troubleshooting-2/open-all-external-links-in-a-new-navigation-tab/

And I still have not solved it, some external links open in the same navigation tab

Any definitive solution?

A greeting.

6 Replies
Posts: 281
(@crisw)
Reputable Member
Joined: 6 years ago

Hi @hector, 

Links usually open in a new tab (at least for my wpforo installation, and also here on this forum).  

Sample link: 

https://wpforo.com/community/general-forums-bug-reports/some-external-links-do-not-open-in-a-new-navigation-tab/

There is a box "Open link in a new box" unchecked (that you can check and uncheck). Like in the attached screenshot. 

If you look at the {;} source code, you will see this code for the above sample, like so: 

<p><a href="https://wpforo.com/community/general-forums-bug-reports/some-external-links-do-not-open-in-a-new-navigation-tab/" target="true"> https://wpforo.com/community/general-forums-bug-reports/some-external-links-do-not-open-in-a-new-navigation-tab/</a></p>  

If you check the "Open link in a new box", like in the sample link below (which should open in a new tab) the source code should look like this: 

https://wpforo.com/community/general-forums-bug-reports/some-external-links-do-not-open-in-a-new-navigation-tab/  

<p><a href="https://wpforo.com/community/general-forums-bug-reports/some-external-links-do-not-open-in-a-new-navigation-tab/" target="true"> https://wpforo.com/community/general-forums-bug-reports/some-external-links-do-not-open-in-a-new-navigation-tab/</a>  </p> 

If for some reason, some links does not open for you on your forum, just add a little snippet of code: 

target="blank" after the href part of the link.  Just add "space" then target="blank"  

of the link that you want to open in a new tab. 

This should also open in a new tab: 

https://wpforo.com/community/general-forums-bug-reports/some-external-links-do-not-open-in-a-new-navigation-tab/

And this is the code: 

<p><a href="https://wpforo.com/community/general-forums-bug-reports/some-external-links-do-not-open-in-a-new-navigation-tab/" target="blank"> https://wpforo.com/community/general-forums-bug-reports/some-external-links-do-not-open-in-a-new-navigation-tab/</a></p>  

You might also have a plugin that is conflicting with the way the links on wpforo opens.  Because in my own installation, the links always open in a new tab. Maybe you just need to see if the specific link that you want to open in a new tab, has the "Open link in a new box" checked.

Good luck and God bless you! 🙂 

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

When a user posts external links in the topics or replies, it is generally not noticed if the attribute target = "true" or target = "blank"

These attributes should be placed on all links, regardless of whether or not they are logged in.

I still can't solve my problem ...

2 Replies
Robert
Admin
(@robert)
Joined: 9 years ago

Support Team
Posts: 10591

@hector

How to you put links in topics. If you put a URL it'll automatically replaced with the target="_blank" attribute. As you can see here I'm putting an external link in my post:

https://www.google.com/

Robert
Admin
(@robert)
Joined: 9 years ago

Support Team
Posts: 10591

And it comes with the target="_blank" attribute. So all is done by wpForo automatically if you just put a URL. But if you copy some link and past in the editor it doesn't do any replace. So I want to ask you , how do you create those links? Leave some direct link to that post.

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

Hello again.

I have a forum for testing, and without touching the editor put a URL directly in the topic, and as expected this URL opens in the same browser tab

See topic: https://artesanosdelsoftware.info/foro-principal/php/

This installation has the Twenty Sixteen theme ( https://wordpress.org/themes/twentysixteen/) and the wpForo plugin, there is no other plugin installed.

Any idea why this is happening?

1 Reply
Sofy
 Sofy
Admin
(@sofy)
Joined: 7 years ago

Support Team
Posts: 4900

@hector,

Please follow this discussion: 

https://wpforo.com/community/how-to-and-troubleshooting-2/open-all-external-links-in-a-new-navigation-tab/#post-32358