On 13/06/07 09:22 PM, Brian Gernhardt was heard to say: > On Jun 13, 2007, at 4:37 PM, Oliver Baltzer wrote: > >> All I am suggesting is to redirect if >> clean_url(Page#url) != request url [1]. The model can then decide >> how to >> compute the URL. I suspect your alias page model's url method already >> computes /other_site/alias_page instead of /first_site/source_page. > > Actually, it doesn't.
I think it should. I don't see why not. > And I think that redirect is broken for any > site that has multiple ways to access the same page. There is no reason for accessing the _same_ page via multiple ways. That's just bad design. Compared to a Unix file system, there are directory entries and there is data. Two directory entries may point to the same data, but still are distinct directory entires. Asking either of them for their path will return two different paths. > And it sucks from a performance point of view as we have to do find_by_url > twice > for the page twice before displaying it. Only if it actually needs to be redirected. Apache does not seem to have a problem to stat a directory twice for the same reason. Redirects should be fairly infrequent if the web-author is paying attention. Cheers, Oliver
signature.asc
Description: OpenPGP digital signature
_______________________________________________ Radiant mailing list Post: [email protected] Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant
