1b.app
Link copied -

Update URL

Initially, the product url is formed based on the name
for example, for a product with the name "55-G - Electric sheet GUR ISI 120x160 - Turkey (Electric sheet - thermal seam - bike)", the url https://prnt.sc/w2arg1 was formed, i.е. spaces are replaced by dashes, all uppercase characters are converted to lowercase, only characters remain (separated by commas) az, 0-9, _, -
but a minute later the url changed to this - https://prnt.sc/w2au6r , i.e. where there was a SpaceDashSpace in the title, it was originally written as "---" in the url, but then only "-" remained. Because of this, a bunch of unnecessary redirects are created.
It does some sort of automatic handler by replacing --- with just - ? What is the reason for such a replacement?
Original question is available on version: ru

Answers:

Well, this is not an automatic processor - it was just editing the product with checks (maybe the card was saved).
So there is a regular expression replacement of several dashes by 1, as well as a replacement of dashes at the beginning and end with emptiness
15.12.2020, 15:25
Original comment available on version: ru

Please join the conversation. If you have something to say - please write a comment. You will need a mobile phone and an SMS code for identification to enter. Log in and comment