00533: New page edit link links to false page

Summary: New page edit link links to false page
Created: 2005-09-20 01:25
Status: Closed - intended design
Category: Bug
From: Klonk
Assigned:
Priority: 2
Version: 2.0.6
OS:

Description: I found a bug (at least I think it is one) during updating the german translation of some pages.

I wanted to create a page PmWikiDe/PmWiki (now it exists, but I'm sure you can reproduce) so I wrote

 http://www.pmwiki.org/wiki/PmWikiDe/PmWiki

into the URL line.

Then a page occured with the text (which is OK so far):

 Describe PmWiki here.

But this link to PmWiki pointed to:

 http://www.pmwiki.org/wiki/PmWiki/PmWiki

instead of:

 http://www.pmwiki.org/wiki/PmWikiDe/PmWiki?action=edit

Clicking on the edit link at the top right corner works fine.


It's confusing, but I'm not sure I'll classify it as a bug. It's probably just the least of several evils.

The $DefaultPageTextFmt variable has a value of "Describe $Name here." $Name is the name of the page, in this case "PmWiki", and since it's a WikiWord it is treated as a link to another page. Given a page link like "PmWiki" that has no group qualifier, it links to the first of

  • PmWiki in the current group, if it exists
  • PmWiki.PmWiki, if it exists
  • PmWiki.$DefaultName, if it exists
  • the edit page to create PmWiki in the current group

So, in this case, the PmWiki link became a link to the group instead of a link to create a new page.

There are several options or workarounds:

  • Disable wikiword links
  • Change $DefaultPageEditFmt to "Describe $FullName here."
  • Change $DefaultPageEditFmt to "Describe [=$Name=] here."

The first option is a CoreCandidate at PITS:00520. I think the other two options are actually less desirable than the status quo.

At any rate, I'm going to probably classify this issue as an intentional design decision.

--Pm


Well, OK. I just wanted to bring this to your knowledge.

-- Klonk September 21, 2005, at 01:38 PM