[pmwiki-users] Make URLs not case sensitive?

Patrick R. Michaud pmichaud at pobox.com
Fri Jan 28 15:29:04 CST 2005


On Fri, Jan 28, 2005 at 04:15:56PM -0500, Neil Herber wrote:
> >Okay, I think you're likely to end up with the same answer I have, but
> >I'm going to play this one out just to make sure.

I'm glad I played it out, because your answers didn't match mine.  :-)

> >1.  If I have a link to a non-existent page that reads 
> >    [[my Photoshop page]], then what is:
> >      - the url that results from following the edit link
>              http://www.example.com/wiki/group/myphotoshoppage

I'll play along with this one for now...

> >      - the page's name (including appropriate case)
>              my Photoshop page

Okay, but given that the URL being used to create the new page is (from  
your answer above) 

    http://www.example.com/wiki/group/myphotoshoppage?action=edit 

how does the edit page form know that the first 'p' is supposed to
be capitalized?  The edit form has no information beyond what appears
in the url -- i.e., it can't look back at the page you were previously
on to determine the case from there.

> >      - the case of the title as it appears at the top of that page
>             Trick question!
>             either the contents of the (:title:) directive that applies to 
>             this page or
>                 my Photoshop Page

I wasn't intending it to be a trick question; I'm ignoring (:title:)
for the moment, which always sets the page's title.  But why did the
"P" in "page" get capitalized?  (Conversely, why wasn't the 'm'
capitalized?)

> Unasked question: What would the filename be?
>         group.myphotoshoppage

Right, I knew that one.  :-)

> >2.  If a user creates a new page by entering the url
> >        http://www.pmwiki.org/wiki/css/mystylesheet
> >    then what case for the pagename has the user specifically entered
> >    (i.e., what's the case of the pagename)?
> 
>         mystylesheet

I was looking for the full pagename -- i.e., the full pagename would
be "css.mystylesheet"?

And is that how it would appear at the top of its page... i.e.,
as "css / mystylesheet" in all lowercase?

Pm



More information about the pmwiki-users mailing list