-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Clean up the world location base path class #1035
Conversation
I have no idea what this did, but it didn't affect the related links as I'd hoped, as it turns out that the code for them is in the govuk_publishing_components gem. This reverts commit 84cc5f8.
As far as I can work out, this is never used. The only document type that uses the metadata, which is I think where this is possibly used is travel advice. I checked if any travel advice content is tagged to world locations, and it isn't. This is very confusing, as the exceptional cases aren't exceptional. Looking at the code, the behaviour looks to be the same with or without them. I've also removed the comment, as the situation with the migration of "world locations to a taxonomy based model" is pretty uncertian, as the Topic Taxonomy doesn't have anything to do with country classification (it's about subject, not geography), and this "temporary solution" both as far as I can work out, doesn't do anything, and has been here for over a year.
Thanks for taking a look Paul :) |
The slug for the world location 'UK mission in the European Union' doesn't match exactly the title of the world location. Instead the slug shortens 'European Union' to 'EU'. This means that links to this world location are currently broken (for example https://www.gov.uk/government/speeches/triggering-the-jcpoa-dispute-resolution-mechanism-foreign-secretarys-commons-statement (see section at the bottom of the page). This is similar to the special cases that we used to have in government-frontend before they were removed and moved into govuk_publishing_components: alphagov/government-frontend#1035
The slug for the world location 'UK mission in the European Union' doesn't match exactly the title of the world location. Instead the slug shortens 'European Union' to 'EU'. This means that links to this world location are currently broken (for example https://www.gov.uk/government/speeches/triggering-the-jcpoa-dispute-resolution-mechanism-foreign-secretarys-commons-statement (see section at the bottom of the page). This is similar to the special cases that we used to have in government-frontend before they were removed and moved into govuk_publishing_components: alphagov/government-frontend#1035
The slug for the world location 'UK mission in the European Union' doesn't match exactly the title of the world location. Instead the slug shortens 'European Union' to 'EU'. This means that links to this world location are currently broken (for example https://www.gov.uk/government/speeches/triggering-the-jcpoa-dispute-resolution-mechanism-foreign-secretarys-commons-statement (see section at the bottom of the page). This is similar to the special cases that we used to have in government-frontend before they were removed and moved into govuk_publishing_components: alphagov/government-frontend#1035
The slug for the world location 'UK mission in the European Union' doesn't match exactly the title of the world location. Instead the slug shortens 'European Union' to 'EU'. This means that links to this world location are currently broken (for example https://www.gov.uk/government/speeches/triggering-the-jcpoa-dispute-resolution-mechanism-foreign-secretarys-commons-statement (see section at the bottom of the page). This is similar to the special cases that we used to have in government-frontend before they were removed and moved into govuk_publishing_components: alphagov/government-frontend#1035
The slug for the world location 'UK mission in the European Union' doesn't match exactly the title of the world location. Instead the slug shortens 'European Union' to 'EU'. This means that links to this world location are currently broken (for example https://www.gov.uk/government/speeches/triggering-the-jcpoa-dispute-resolution-mechanism-foreign-secretarys-commons-statement (see section at the bottom of the page). This is similar to the special cases that we used to have in government-frontend before they were removed and moved into govuk_publishing_components: alphagov/government-frontend#1035
Looks like this is still necessary e.g. for St Pierre & Miquelon (link is at the bottom of the page). |
I don't believe the changes here are directly involved, since the special case removed here doesn't help, and just leads to a non-existent page:
Using the slug |
Sure, the actual page is https://www.gov.uk/world/st-pierre-and-miquelon/news. I should clarify my intent here: this was mainly to document the continued need for the original code, which provided for special cases like this one. However, I don't think it's worth investing effort in fixing it right now, as that's a distracting from the underlying problem - no base paths 😨. |
First, revert a ineffective change I made, then attempt to clean this WorldLocationBasePath class up.
As far as I can work out, this is never used. The only document type
that uses the metadata, which is I think where this is possibly used
is travel advice. I checked if any travel advice content is tagged to
world locations, and it isn't.
This is very confusing, as the exceptional cases aren't
exceptional. Looking at the code, the behaviour looks to be the same
with or without them.
I've also removed the comment, as the situation with the migration of
"world locations to a taxonomy based model" is pretty uncertian, as
the Topic Taxonomy doesn't have anything to do with country
classification (it's about subject, not geography), and this
"temporary solution" both as far as I can work out, doesn't do
anything, and has been here for over a year.