Question
EditUrlLooksBad
I am having this problem too -- on multiple browsers and OSes (Win IE, FF; Mac FF and Safari).
The EDITURL variable is not getting parsed; when I view source I see this:
<a href="%EDITURL%" class="but mb" accesskey="e">Edit this page</a>
I edited my templates to not use EDITURL and instead I manually append a timestamp to the edit link, but my installation shipped with the bad EDITURL variable.
My fix:
<a href='%SCRIPTURLPATH%/edit%SCRIPTSUFFIX%/%WEB%/%TOPIC%?t=%GMTIME{"$year$month$day$hours$minutes$seconds"}%' class="but mb" accesskey="e">Edit this page</a>
Any tips on how to fix this?
Environment
--
EllenBeldner - 19 Sep 2008
Answer
If you answer a question - or have a question you asked answered by someone - please remember to edit the page and set the status to answered. The status is in a drop-down list below the edit box.
EDITURL is defined in TWiki.TWikiPreferences (now marked as 'legacy'). What do you have there?
--
ArthurClemens - 19 Sep 2008
The browser shouldn't matter, since it's the server that should do that substitution.
This is strange because the template for that doesn't use
%EDITURL%. The relevant part of
TWiki/templates/viewtopicactionbuttons.tmpl is as follows:
%TMPL:DEF{"edit_topic_link"}%<span><a href='%SCRIPTURL{"edit"}%/%WEB%/%TOPIC%?t=%GMTIME{"$epoch"}%%TMPL:P{"url_param_editaction"}%%IF{"context TinyMCEPluginEnabled" then="" else=";nowysiwyg=1"}%' rel='nofollow' %MAKETEXT{"title='Edit this topic text' accesskey='e'>&Edit"}%</a></span>%TMPL:END%
%TMPL:DEF{"raw_edit_link"}%<span><a href='%SCRIPTURL{"edit"}%/%WEB%/%TOPIC%?t=%GMTIME{"$epoch"}%%TMPL:P{"url_param_editaction"}%;nowysiwyg=1' rel='nofollow' %MAKETEXT{"title='Raw Edit this topic text' accesskey='w'>Ra&w edit"}%</a></span>%TMPL:END%
What does your look like? You might need to re-install that template?
--
SeanCMorgan - 22 Sep 2008
Closing this after more than 30 days of inactivity. Please feel free to re-open if needed.
--
PeterThoeny - 07 Nov 2008