Menu

#586 can't use {{PAGENAME}} on pages with spaces in title

closed
5
2004-08-12
2004-07-27
siroxo
No

The {{PAGENAME}} variable does not work properly when
used in external links with pages with spaces in the
title. Consider a page called "Namespace:My page".
If you use something like
[http://en.wikipedia.org/w/wiki.phtml?title={{NAMESPACE}}:{{PAGENAME}}&action=edit
click here]
on "Namespace:My page", it will produce a link like this:
"page&action=edit click here" which links to the URL
"http://en.wikipedia.org/w/wiki.phtml?title=My"

This bug makes it tough to create templates that have
links to edit pages or subpages.

Discussion

  • Brion Vibber

    Brion Vibber - 2004-07-27
    • labels: 429246 -->
    • milestone: 411865 -->
     
  • Brion Vibber

    Brion Vibber - 2004-07-27

    Logged In: YES
    user_id=446709

    What you want would require a new substitution variable which provides
    a URL-escaped version of the page name. Reassigning from bugs to
    feature requests.

     
  • Ashar Voultoiz

    Ashar Voultoiz - 2004-08-12

    Logged In: YES
    user_id=663115

    This is now implemented in cvs. The key code is {{PAGENAMEE}}.

     
  • Ashar Voultoiz

    Ashar Voultoiz - 2004-08-12
    • labels: --> Wikitext parsing
    • assigned_to: nobody --> hashar
    • status: open --> closed
     

Log in to post a comment.