Auto add target="_blank" to all posted links

Auto add target="_blank" to all posted links
0

#1

Hi there,

I would find very useful for the forum if any link provided by the users in their posts will have the target="_blank" auto added so the links open in new windows.

Sure, you can explicitly and manually do that yourself but instead of one click i’m forced to make two clicks :smile:

Happy coding


#2

When I paste in a link to a forum post and click on it, it does open in a new window.

Can you share a link to an existing forum post which does not do this? I have never seen a link that does not open a new window when clicked.


#3

Sure. Here a link to one of my fcc projects on codepen: https://codepen.io/sorinr/pen/EymkWr

Does it open for you in a new tab? I even disabled the addblocker for this forum.


#4

It opens in a new window/tab for me.


#5

Not for me. I’m on chrome the latest or so


#6

So I am assuming when you click the link, it just takes you directly to the page of the url?

Are you using Mac, PC, tablet, or phone?


#7

Nope. When I click the link it opens on the same window tab replacing the forum page. I’m on a PC


#8

Close your browser, reopen and try to click on a post link again. I was able to adjust your forum account settings.


#9

Great Job. Now its working as expected. :+1:


#10

You can actually adjust this setting and others if you click on your profile and go to Preferences --> Interface. Under Other, there is a checkbox for Open all external links in a new tab


#11

Thank you for your help. I’m coming from the gitter fcc rooms and wasn’t quite updated with the way the forum works.

Thank again.