Tags:
create new tag
view all tags

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

TWiki version: TWikiRelease04x02x02
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS: amd64-freebsd
Web server: apache
Perl version: 5.8.8
Client OS: Mac, Windows
Web Browser: FF Mac / Window; Mac Safari; IE
Categories: Platform

-- EllenBeldner - 19 Sep 2008

Answer

ALERT! 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.

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

Change status to:
Edit | Attach | Watch | Print version | History: r4 < r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r4 - 2008-11-07 - PeterThoeny
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.