radiant/radiant-share-layouts-extension — Issue #7: Overriding find_by_url permits spurious URLs
Author: simonhildebrandt
Created: 2012-01-17 01:58:19+00:00
State: open

Because the RailsPage class overrides the find_by_url with a very forgiving replacement, any path below an existing RailsPage is matched to that page - eg:

/my-page
/my-page/other-page
/my-page/other-page.php

All match to the page identified by /my-page.

My understanding is that finding the RailsPage like this allows us to add content to or provide a content for the layout being rendered, but it would be preferable not to blanket-match URLs that don't exist.