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

Now matches the exact path for url blocking #2101

Merged
merged 1 commit into from
Mar 23, 2020
Merged

Conversation

DilwoarH
Copy link
Contributor

Previously it was checking for segments so if we had /coranavirus blocked, /guidance/coronavirus-covid-19-information-for-the-public would be blocked too as it has /coronavirus in the middle.

This change now forces the regex to check exact match so it would only match if the path is /coronavirus not /guidance/coronavirus-covid-19-information-for-the-public.

Trello: https://trello.com/c/a83JfZDG/60-check-why-the-banner-doesnt-appear-on-certain-pages

@DilwoarH DilwoarH requested review from andysellick and sihugh March 23, 2020 10:40
Previously it was checking for segments so if we had `/coranavirus` blocked, `/guidance/coronavirus-covid-19-information-for-the-public` would be blocked too as it has `/coronavirus` in the middle.

This change now forces the regex to check exact match so it would only match if the path is `/coronavirus` not `/guidance/coronavirus-covid-19-information-for-the-public`.

Trello: https://trello.com/c/a83JfZDG/60-check-why-the-banner-doesnt-appear-on-certain-pages
@DilwoarH DilwoarH force-pushed the regex-for-exact-match branch from bb9fa6c to a8a94eb Compare March 23, 2020 11:23
@DilwoarH DilwoarH merged commit f7bb055 into master Mar 23, 2020
@DilwoarH DilwoarH deleted the regex-for-exact-match branch March 23, 2020 11:58
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.

2 participants