Welcome! » Log In » Create A New Profile

TargetBlank - Not For Relative Links?

Posted by laurin1 
TargetBlank - Not For Relative Links?
January 19, 2015 09:38AM

Why does HTML.TargetBlank not work for relative links? Is there a way to change that?

Re: TargetBlank - Not For Relative Links?
January 19, 2015 01:25PM

As in, links whose href are the form "#foo"? It should work...

Re: TargetBlank - Not For Relative Links?
January 19, 2015 02:09PM

As in, links whose href are the form "#foo"? It should work...

No. I can't show you examples, but when I put HTML in the post, it's converted to an actual link and using the CDATA method indicated in the help does not work.

But I mean using "http://foo.com/foo.htm" works, but a link with just "/foo.htm" does not work.

Re: TargetBlank - Not For Relative Links?
January 19, 2015 02:19PM

Oh, that's because that's what HTML.TargetBlank was designed to do. You can easily patch it or make a similar AttrTransform that unconditionally adds target.

Re: TargetBlank - Not For Relative Links?
January 19, 2015 03:44PM

Why would you only want explicit links to use target="_blank"?

Re: TargetBlank - Not For Relative Links?
January 19, 2015 04:10PM

The idea was that maybe for links on your own website, you can have them on the same page, but you want links to external websites you want to pop up in new windows.

Re: TargetBlank - Not For Relative Links?
June 05, 2015 10:20PM

Thank you for this information

Arabic books

Sorry, you do not have permission to post/reply in this forum.