Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

Archive /

Our old forums are still available as a read-only archive.

Moderators: martimiz, Sean, biapar, Willr, Ingo, simon_w

Urls, why no 'sublevel' urls?


Go to End
Reply


51 Posts   32111 Views

Avatar
Decisive Flow

Community Member, 73 Posts

13 March 2007 at 12:55pm

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?

Avatar
Sigurd

Forum Moderator, 628 Posts

13 March 2007 at 7:11pm

Sounds like a reasonable request to me :)
It might not make 2.1 but we'll put it on the to-do list...

Avatar
Sam

Administrator, 685 Posts

13 March 2007 at 9:36pm

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.

Avatar
tito0224

Community Member, 8 Posts

16 April 2007 at 1:47pm

how would you go about setting the default of urls like that?

Avatar
laktek

Google Summer of Code Hacker, 76 Posts

16 April 2007 at 4:08pm

Can't we implement a similar concept as Routing components in Rails ?

Avatar
10Speed

1 Post

6 August 2007 at 3:17pm

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.

Avatar
Sean

Forum Moderator, 922 Posts

6 August 2007 at 10:07pm

Edited: 06/08/2007 10:09pm

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?

Avatar
elijahlofgren

Google Summer of Code Hacker, 222 Posts

8 August 2007 at 5:15am

> 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.

Go to Top