Get the client to list preferred urls for each page up front

This is part of the Semicolon&Sons Code Diary - consisting of lessons learned on the job. You're in the collaboration category.

Last Updated: 2024-04-25

I created a blog for example.com based on the designs uploaded to our designer's tool. There was no info about URLs so I choose with /blog for the index page and /blog/{slug} for the individual pages, then wrote integration tests on this basis.

When I showed this to the client, they said they wanted /{slug} (i.e. top-level URLs). This required an annoying rewrite of the code and tests

Lesson

Don't start a feature without knowing what URL you want it on