
|
[dokuwiki]
||
[Date Prev]
[03-2007 Date Index]
[Date Next]
||
[Thread Prev]
[03-2007 Thread Index]
[Thread Next]
[dokuwiki] Re: Namespace linking from URL (fix for #991)
- From: Andreas Gohr <andi@xxxxxxxxxxxxxx>
- To: dokuwiki@xxxxxxxxxxxxx
- Date: Mon, 26 Mar 2007 20:18:10 +0200
On Tue, 13 Mar 2007 14:43:37 +0100
Guy Brand <gb@xxxxxxxxxxxxxxxxx> wrote:
> On 28 January at 13:00, Andreas Gohr wrote:
>
> > > Attached is a single-line patch which allows namespace
> > > auto-linking from URL requests
> > > (http://bugs.splitbrain.org/?do=details&id=991).
> >
> > It breaks a test case:
>
> Attached is a new patch for this issue. Tested against darcs
> revision with all combinations of userewrite and useslash.
> No regression observed on the tests.
>
> You can now request doku.php?id=ns: or doku.php?id=ns/ if you have the
> useslash option activated and have DokuWiki return the $conf['start']
> page from that namespace. See issue #991.
Hmm, I just thought about this again. Shouldn't we do a redirect to the
correct page here, instead of displaying the same content under two
different URLs?
Calling doku.php?id=ns: should redirect me to doku.php?id=ns:start (or
to whatever it resolves). This makes sure the user bookmarks the
correct page and search engines are happier with canonical URLs as well.
Sorry for not mentioning this before...
Andi
--
http://www.splitbrain.org
|

|