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

Bug: 404 RoutingError when filling in the city field with "_" symbol #769

Open
owlscatcher opened this issue Sep 26, 2024 · 1 comment
Open
Labels
bug Something isn't working

Comments

@owlscatcher
Copy link
Contributor

Summary

When filling in the “city” field on the job search page, we get a RoutingError if the “_” character was entered in the field.

Reproduction steps

1. Go to https://cv.hexlet.io/ru/vacancies
2. Fill in the “city” field using underscores (for example: New_york)
3. Click search button
4. Get a 404 error, and a RoutingError on the backend

Expected result

List of ads with the corresponding city or “Empty”

image

Actual result

In a production environment:
image

In a dev environment:
image

Browsers

Firefox, Chrome

OS

Linux

@owlscatcher owlscatcher added the bug Something isn't working label Sep 26, 2024
@aelaa
Copy link

aelaa commented Oct 3, 2024

Underscores are used in search filtering, so we cannot distinguish it from the separator. Which character can be used as a separator instead of underscore better?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: No status
Development

No branches or pull requests

2 participants