Oliver Baltzer wrote:
> thanks for your input. I do not think that the file extension is in
> the general case a good indication for whether a URL should have a
> trailing slash or not [1]. The canonical URL of a resource should be
> determined by its corresponding model. ATM, everything in Radiant is a
> page whether it is HTML or CSS. I would suggest the site controller
> uses Page#url to determine the canonical URL of a page and redirects
> accordingly. Page#url or any derived form of it is then responsible of
> deciding if a trailing slash should be added. If we then want to have
> CSS and XML without trailing slashes, we can just add a new derived
> page model that computes the canonical URL differently.

I'm fine with it being implemented through Page#url, but I would suggest 
that the default implementation check the file extension to determine if 
the trailing slash is necessary.

--
John Long
http://wiseheartdesign.com
_______________________________________________
Radiant mailing list
Post:   [email protected]
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant

Reply via email to