Skip to content
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

Fix duplicate page titles in places user journey #4024

Closed
wants to merge 4 commits into from

Conversation

hannalaakso
Copy link
Member

@hannalaakso hannalaakso commented Apr 4, 2024

⚠️ This repo is Continuously Deployed: make sure you follow the guidance ⚠️

What

Why

Link to Trello card

How

Screenshots?

@govuk-ci govuk-ci temporarily deployed to govuk-frontend-app-pr-4024 April 4, 2024 15:40 Inactive
This line was throwing a location error when there were multiple authorities returned. This check I've added is the same as the check on line 21 to check if the multiple authorities template should be rendered (that line also checks if postcode is provided, but we already check for that on line 88 here).

However, I'm not sure if my "fix" is the best way to handle this or if we should in fact investigate why the places_not_found method from the model doesn't recognise multiple authorities as a valid result. I've tried to superficially compare how this is handled for the other postcode finders like local transaction but those use the location_api model instead.
@hannalaakso hannalaakso force-pushed the deduplicate-places-page-titles branch from 724ef8f to bd39b1e Compare April 4, 2024 15:49
@govuk-ci govuk-ci temporarily deployed to govuk-frontend-app-pr-4024 April 4, 2024 15:49 Inactive
@hannalaakso
Copy link
Member Author

Closed in favour of #4072 which adds the fixes in this PR over the recent changes to the places directory which caused a lot of merge conflicts (I didn't replace this branch as I though it could be useful to keep it for reference for what I was originally trying to do)

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.

None yet

2 participants