Skip to content

Conversation

dedavidson
Copy link

What does this change?

This adds additional words to the pathauto default config that are to be ignored when creating a URL

Coming from #817

@dedavidson dedavidson requested a review from markconroy July 9, 2025 14:16
@dedavidson dedavidson linked an issue Jul 9, 2025 that may be closed by this pull request
@markconroy
Copy link
Member

markconroy commented Jul 14, 2025

@dedavidson I'm going to remove myself as a reviewer of this PR.

I'm not going to block it, but I think we should keep all words in our URL and not remove any of them, for predictability's sake.

For example a node with Title "It is up to you" will end up with a url of /it-is-up-to-you but a node with title "It is up to you David" will get a URL of /david. And if we already had a page at /david then the "It is up to you David" page will have a URL of /david-0. I don't like that level of unpredictability (and how do we let content designers know what words are available and what are not).

@markconroy markconroy removed their request for review July 14, 2025 10:52
@willguv
Copy link
Member

willguv commented Jul 14, 2025

Thanks for your comment @markconroy

This originated at Dumfries & Galloway and the need was to follow GDS style link structure - is this right @dedavidson?

Copying @finnlewis @tonypaulbarker as this could be a Tech Governance discussion

@markconroy
Copy link
Member

Here's some guidance from GOVUK

Dashes should be used to separate words within URLs to ensure they are easy to read. For example, https://www.gov.uk/running-a-limited-company. (see 5, 7 and 15 for exceptions on campaign landing pages and service sub-domain URLs.)

Articles (a, an, the) and other superfluous words should not be used. For example, /benefits or /benefits-guides rather than /a-guide-to-benefits

I love the irony that the first thing to remove a, an, the are actually left in in the first example they give https://www.gov.uk/running-a-limited-company

They also say URL patterns are different for landing pages vs internal pages, and external sites (specifically mentioning Local Authorities) may use different patterns to GOVUK.

@willguv
Copy link
Member

willguv commented Jul 15, 2025

Cheers for linking to the guidance @markconroy

Some councils will want this, and it might become more important as GDS starts to work with local government

How about including it in the profile but switched off, with the option for councils to switch on if they like

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Write doc to remove conjunctions from URLs
3 participants