Question
My Twiki site users wanted me to change the default Interwiki link behavior so that a link will open in a new browser window. I thought I changed the appropriate line of code in the InterwikiPlugin.pm file.
It didn't seem to work though. I'm no perl expert but I didn't see (off the bat) where else to do this.
I changed line number 158 from:
$text = "$thePrefix<a href=\"$text\"$title>$theSite\:$theTopic</a>";
to:
$text = "$thePrefix<a href=\"$text\"$title target='_blank'>$theSite\:$theTopic</a>";
Was this the right approach?
Thank you,
BrianBeaudet
Environment
--
BrianBeaudet - 01 Sep 2006
Answer
If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.
No takers on this one.
--
BrianBeaudet - 08 Sep 2006
Yes Brian, this is the right approach.
You could suggest in the
InterwikiPluginDev topic to add a flag to configure the plugin to open a new window or not.
--
PeterThoeny - 08 Sep 2006
Will do.
--
BrianBeaudet - 18 Sep 2006
I have it working. I combined your modification with a modification to Render.pm. On line 771 I changed:
$opt = ' target="_top"';
to
$opt = ' target="_blank"';
--
AndyFranklin - 19 Oct 2006