Question
The email sent by
WebNotify contains incorrect URLS, with part of the URL duplicated.
For example, the URL
http://somemachine.com/~anp/~anp/twiki/bin/view/Mywebname/TWikiPageName
has "~anp/" twice rather than once.
All the URLs in the
WebNotify email have this duplication.
I've looked at all references to "~anp" in the
TwikiPreferences and don't see any problems. I've no problems with the rest of the system - URLs work fine within the TWiki
Any suggestions?
Environment
--
AndyPryke - 03 Mar 2004
Answer
You may need to do some
TWikiDebugging in the mailnotify program, near the end where it fixes up the URL paths. As always, following the
SupportGuidelines and posting your testenv HTML output and TWiki.cfg would help... I suspect something may be wrong with the setting of $scriptUrlPath, used near the end of mailnotify, but it's more likely to be a config problem than a TWiki bug.
testenv specifically checks for one problem with this variable - did you already run testenv?
In your setup, $scriptUrlPath should be something like "/twiki/bin" in TWiki.cfg, and should not be prepended with
~anp.
--
RichardDonkin - 04 Mar 2004
Thanks Richard. You're quite right about the
SupportGuidelines, thanks for helping anyway.
My problem appears to be that my defaultUrlHost variable was incorrectly set in TWiki.cfg.
The old file read:
$defaultUrlHost = "http://hostname.com/~anp";
$scriptUrlPath = "/~anp/twiki/bin";
$pubUrlPath = "/~anp/twiki/pub";
The version which now works reads
$defaultUrlHost = "http://hostname.com";
$scriptUrlPath = "/~anp/twiki/bin";
$pubUrlPath = "/~anp/twiki/pub";
I did test removing the "~anp" from the scriptUrlHost variable,
but then found that the URLs generated for edit links (at probably other links) in TWiki pages
were incorrect.
--
AndyPryke - 18 Mar 2004