00470: external URLs not working

Summary: external URLs not working
Created: 2005-07-17 00:42
Status: Closed, not a bug
Category: Bug
From: JMH?
Assigned:
Priority: 5
Version: pmwiki-2.0.beta48
OS: Linux/unknown at this time

Description: Forgive me if I'm missing something extremely simple... I just upgraded to version 2.0-beta48. Pmwiki handles links to wiki pages properly, but it doesn't seem to be handling external URLs right. For example, the following lines:

http://www.google.com

http://www.google.com

Google

Produces the following HTML code:

 
<p><a href="$Url">http://www.google.com</a>
</p><p class='vspace'></p>
<p><a href="$Url">http://www.google.com</a>
</p><p class='vspace'></p>
<p><a href="$Url">Google</a>
</p>

Your help is appreciated!!!


What version did you upgrade from?

The link setting generating the <a href="$Url"> looks totally wrong, as if there's an incorrect local customization or else a cookbook recipe that is changing the value of $UrlLinkFmt. The default setting is normally

 
    $UrlLinkFmt =
      "<a class='urllink' href='\$LinkUrl' rel='nofollow'>\$LinkText</a>";
 

The fact that the output you're seeing has double-quotes instead of single and is missing the class= attribute makes me think that some sort of local customization is the culprit here.

--Pm


Duh... That was it - an artifact from an old local customization! Problem fixed... Thanks so much!