[Radiant] Relative Linking in Radiant

Oliver Baltzer oliver.baltzer at nobits.com
Wed Jun 13 13:00:51 CDT 2007


Brian Gernhardt wrote:
> /  (Virtual Domain Page)
> /main-site
> /main-site/site.css
> /other-site
> /other-site/site.css
> /other-site/main.css (Alias Page) (to /main-site/site.css)
> 
> This would allow certain pages in the "other site" to look like the  
> main site (an organizational theme to override a site theme, for  
> example).  However, doing Page.find_by_url('/main.css').url (from the  
> other-site host) will return "site.css", which is horribly  
> incorrect.  

I am not sure I understand this. If main.css is an alias page, its model 
should make sure that it returns the alias's canonical URL instead of 
the destination page's URL.

Cheers,
Oliver



More information about the Radiant mailing list