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 empty slug #1048

Merged
merged 2 commits into from
Mar 20, 2019
Merged

Fix empty slug #1048

merged 2 commits into from
Mar 20, 2019

Conversation

Gnito
Copy link
Contributor

@Gnito Gnito commented Mar 20, 2019

A listing title that contained only stripped-off characters caused bugs in slug / pathName generation.

Longer version:
If a provider creates a listing with a title that only contains characters that we strip-off when creating a slug for URLs, It will cause an error and a blank page (or 500 if server rendered). (E.g. title like "--")
This can happen in search page too.

@Gnito Gnito force-pushed the fix-empty-slug branch 3 times, most recently from 2df6a97 to b106ba4 Compare March 20, 2019 10:38
@Gnito Gnito requested a review from kpuputti March 20, 2019 10:40
Copy link
Contributor

@kpuputti kpuputti left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Couple suggestions, otherwise fine.

CHANGELOG.md Outdated Show resolved Hide resolved
src/util/routes.js Outdated Show resolved Hide resolved
@Gnito Gnito merged commit ce9d61a into master Mar 20, 2019
@Gnito Gnito mentioned this pull request Mar 28, 2019
@Gnito Gnito deleted the fix-empty-slug branch May 8, 2019 10:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants