I should be able to add a snippet with a title Brian's Python Example and the backend should covert the title to a URL friendly key. This was happening in previous releases, the title Brian's Python Examples is saved as https://dev.codesplain.io/thebho/brian's_python_examples.
Current Behavior
In dev we now get https://dev.codesplain.io/thebho/brian%27s_python_copycat when using the title: Brian's Python Copycat and that URL redirects back to the homepage. There is a snippet saved with that key.
Steps to Reproduce (for bugs)
Create a new snippet with a title containing an apostrophe
Save that snippet
Reload the page
Possible Solution
Trim the apostrophe before doing the url_lib.quote conversion in the lambda
Do a find and replace with a -
Add a UI workaround
Expected Behavior
I should be able to add a snippet with a title
Brian's Python Example
and the backend should covert the title to a URL friendly key. This was happening in previous releases, the titleBrian's Python Examples
is saved ashttps://dev.codesplain.io/thebho/brian's_python_examples
.Current Behavior
In dev we now get
https://dev.codesplain.io/thebho/brian%27s_python_copycat
when using the title:Brian's Python Copycat
and that URL redirects back to the homepage. There is a snippet saved with that key.Steps to Reproduce (for bugs)
Possible Solution
Trim the apostrophe before doing the url_lib.quote conversion in the lambda Do a find and replace with a
-
Add a UI workaround