Take the 2-minute tour ×
Craft CMS Stack Exchange is a question and answer site for administrators, end users, developers and designers for Craft CMS. It's 100% free, no registration required.

Lets say I have a channel called places, which has the following URL :

http://example.com/places

The url points to a directory of individual places.

However, when you click into an entry, each entry is a place, so it might make more sense to have each entry's url to be :

http:/example.com/place/place-name

Am I right in assuming that the best way to go about this would be to use a route for entries? Or is it best practice to keep things the same for consistency?

share|improve this question
    
Follow-up question: what is common practice if you decide to keep them the same: http://example.com/place & http:/example.com/place/place-name or http://example.com/places & http:/example.com/places/place-name? –  carlcs Jul 15 at 17:29
    
Plural is much more common. –  Brandon Kelly Jul 15 at 17:35

1 Answer 1

up vote 9 down vote accepted

It doesn’t matter to Craft, but generally I think it’s better to have consistent URLs, so they can be discoverable. For example if you land on /places/place-name, it would be reasonable to assume that you could chop off “place-name” and find an index of all the places at /places/.

share|improve this answer
    
Yeah the more I think about it, the more I agree with you. Cheers! –  Sean O'Grady Jul 15 at 18:03

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.