Hexlet / hexlet-cv

Stackoverflow for Resume
https://cv.hexlet.io
GNU Affero General Public License v3.0
96 stars 107 forks source link

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

Open owlscatcher opened 1 week ago

owlscatcher commented 1 week ago

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

aelaa commented 2 hours ago

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?