Help - Search - Members - Calendar
Full Version: Not working when removing target="_blank"
Movable Type Community Forum > Other Product Discussion > Bugs and Odd Behavior
andreasgraulund
I read somewhere that you could edit some codes in the Context.pm files to let the target="_blank" go away when linking to comment authors. And I have edited it every place like that webpage said and uploaded, and rebuilded several times, but the comment author links still have a target="_blank".

But then I realized that all the webloggers who wrote that (as far as I can see) was using Movable Type 2.X. Doesn't it work on MT 3?

For reference, I use MT 3.15.

Any ideas? :/
shelley
There are still only two lines that reference it for comment author link in Context.pm, at 1565 and 1569:

CODE
           return sprintf(qq(<a target="_blank" title="%s" href="%s%s?__mode=red;id=%d">%s</a>),

           return sprintf(qq(<a target="_blank" title="%s" href="%s">%s</a>),


But you could just make sure you don't have target in your Sanitize Specs rather than editing the code - that should strip it out if you're using the MTCommentAuthorLink tag.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2010 Invision Power Services, Inc.