alphagov / smart-answers

Serves smart answers on GOV.UK
https://docs.publishing.service.gov.uk/apps/smart-answers.html
MIT License
176 stars 120 forks source link

Simplify path extraction for ga4_url. #6736

Closed sengi closed 7 months ago

sengi commented 7 months ago

Should maybe use URI here, but that might change some edge cases that I'm not entirely sure are covered by the tests. So let's just simplify what's there, preserving the existing behavior.

Might resolve https://github.com/alphagov/smart-answers/security/code-scanning/1. (Not an actual security issue, just a warning from a heuristic.)