#28688: Unicode slugs are not properly slugified due to javascript limitations
--------------------------------------------------+------------------------
               Reporter:  Sævar Öfjörð Magnússon  |          Owner:  nobody
                   Type:  Bug                     |         Status:  new
              Component:  contrib.admin           |        Version:  1.11
               Severity:  Normal                  |       Keywords:
           Triage Stage:  Unreviewed              |      Has patch:  0
    Needs documentation:  0                       |    Needs tests:  0
Patch needs improvement:  0                       |  Easy pickings:  0
                  UI/UX:  0                       |
--------------------------------------------------+------------------------
 When using unicode slugs, and the slug contains a unicode character and a
 word from the removelist in urlify.js right after it (e.g. the letter
 "a"), the unicode character is detected as a word boundary in javascript
 and the text that matches the removelist is stripped from the slug...
 The removelist contains the following words:

   var removelist = [
   "a", "an", "as", "at", "before", "but", "by", "for", "from", "is",
   "in", "into", "like", "of", "off", "on", "onto", "per", "since",
   "than", "the", "this", "that", "to", "up", "via", "with"
   ];

 And when I try to slugify this text: "Kaupa miða"
 The result becomes: "kaupa-mið"

 This can be tested using the following line in console:
 URLify("Kaupa miða", 255, true)


 (only when urlify.js is loaded, of course)

-- 
Ticket URL: <https://code.djangoproject.com/ticket/28688>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/051.3377fc7f4790f5e05995a43e6b5aede2%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to