[Pmwiki-users] Re: Partial pagenames in URLs

Patrick R. Michaud pmichaud
Thu Sep 16 00:15:25 CDT 2004


On Sun, Sep 12, 2004 at 02:38:18PM -0600, Patrick R. Michaud wrote:
> As most of you know, PmWiki has long had a feature whereby a URL
> that specifies a WikiGroup but no pagename would be automatically taken
> to the home page of that group.  
> [...] what *should* happen if the group doesn't exist or
> doesn't have a default home page?  That is, where should
>    http://www.pmwiki.org/wiki/Example
> go if neither Example.Example nor Example.HomePage exist?

Thanks to all who gave suggestions on this.  I've gone with option #4,
which was:

> 4. Display a page indicating that the page (group?) they specified
>    does not exist, and provide links to either create the new page
>    or search the site

You can see this in action on the PmWiki 2 development site.  For example,
here's a URL that shows what happens when requesting a group that doesn't
have a default home page:

    http://www.pmwiki.org/pmwiki2/pmwiki.php/Profiles

and here's a URL that shows what happens when requesting a group with no
pages:

    http://www.pmwiki.org/pmwiki2/pmwiki.php/Example

The "PageNotFound" page is itself a wiki page, thus a site administrator
can customize the results to appear however he/she wishes or include
other options.

Comments and suggestions welcome.

Pm



More information about the pmwiki-users mailing list