If i have a page support -> help -> dashboard-help
I expect the url to look like: http://www.planhq.com/support/help/dashboard
but instead it looks like: http://www.planhq.com/dashboard
any chance we have the choice?
This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.
Please use forum.silverstripe.org for any new questions
(announcement).
The forum archive will stick around, but will be read only.
You can also use our Slack channel
or StackOverflow to ask for help.
Check out our community overview for more options to contribute.
If i have a page support -> help -> dashboard-help
I expect the url to look like: http://www.planhq.com/support/help/dashboard
but instead it looks like: http://www.planhq.com/dashboard
any chance we have the choice?
Sounds like a reasonable request to me :)
It might not make 2.1 but we'll put it on the to-do list...
This is actually trickier than you might think.
The problem is that if you visit support/help, you might mean the help action on the support page. Compare it to blog/rss, for instance, which is a different view of the blog page, rather than a sub-page in the CMS.
Your best bet is to make the page URL support-help-dashboard. It's possible that we could make the default URLs generated using this format.
how would you go about setting the default of urls like that?
Can't we implement a similar concept as Routing components in Rails ?
I see what Sam is saying, but it would seem to me that presenting the same page differently would be the less frequent need? and same page with different information vs different page, its almost splitting hairs conceptually.
It sounds like more work than it's worth to be honest. How would you have a generic solution for any page you create in the CMS? What happens if you have mysite.com/home/blog, the blog method will get called as well as the page with 'blog' as the URL segment?
> It sounds like more work than it's worth to be honest. How would you have a generic solution for any page you create in the CMS? What happens if you have mysite.com/home/blog, the blog method will get called as well as the page with 'blog' as the URL segment?
Indeed, I used to really want 'sublevel' urls, but I've been thinking that not having them has the following advantages:
* URLs are shorter which makes it much easier if someone ever needs to type them in
* If I rearrange my website, my URLs will remain stable.