URLs
URLs and URIs in TNA services MUST:
- be clear, unambiguous, easy to read, easy to type and easy to share
- be in lower case
- align with the title of the page
- use words and should not contain acronyms, unless very well known or a department acronym (e.g. HMRC)
- separate words with dashes (
-
) rather than underscores (_
) so they are easy to read - use ISO 8601 format if including a date
In addition, URLs and URIs in TNA services SHOULD:
- not use a, an, the and other superfluous words (e.g.
/press-room/
rather than/the-press-room/
) - use the verb stem where possible (e.g.
/find/
rather than/finding/
) - not redirect a user to non-government sites
- be based on user need rather than the name of a policy, scheme or service, which might change
- include the year when using a short URL for one-off promotion of an annual event such as
/events/summer-camp-2020/
- have trailing slashes
- have valid pages at every level of the URL (see Valid URL parts)
See URL standards for GOV.UK for a more comprehensive list.
Valid URL parts
An example of a confusing URL: /catalogue/ref/E/190/558/15/
This URL implies the following paths should also be valid which is probably not the case:
/catalogue/ref/E/190/558/
/catalogue/ref/E/190/
/catalogue/ref/E/
/catalogue/ref/
A better approach here could be: /catalogue/?ref=E/190/558/15
as /catalogue/
is very likely a valid page.