4

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?

2
  • 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
    Commented Jul 15, 2014 at 17:29
  • Plural is much more common. Commented Jul 15, 2014 at 17:35

1 Answer 1

11

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

1
  • Yeah the more I think about it, the more I agree with you. Cheers! Commented Jul 15, 2014 at 18:03

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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