railsyard / railsyardcms

Railsyard - One Ruby on Rails CMS to rule them all!
www.railsyardcms.org
Other
95 stars 7 forks source link

Feature: support for more friendly urls #14

Closed spieker closed 12 years ago

spieker commented 13 years ago

The default url scheme of RY CMS is /en/home-en. I need the root url not to be in the page path, i.e. /en for the english main page. Now, I have set german as default language, so this should also not be part of the url, i.e. / for the german main page.

Some examles:

To make this possible, the shortest page name could be three, so if the first part of the page has the length two, it must be a language definition.

silviorelli commented 13 years ago

Good idea. I should implement this as the default behaviour for the default language.

spieker commented 13 years ago

Have implemented it, has to be tested now. I'll push it, if the tests are written and pass.

silviorelli commented 12 years ago

Can't merge as I changed a lot of things but I'll implement this feature using your code as a starting point. Thanks!