#18660: View on Site links get localized and break urls
-------------------------------+--------------------------
     Reporter:  eduardocereto  |      Owner:  nobody
         Type:  Bug            |     Status:  new
    Component:  contrib.admin  |    Version:  1.4
     Severity:  Normal         |   Keywords:  localization
 Triage Stage:  Unreviewed     |  Has patch:  0
Easy pickings:  1              |      UI/UX:  0
-------------------------------+--------------------------
 When object ids are larger than 1000 and you have localization turned on
 the "View on Site" links on the admin break because the ids get a thousand
 separator and that render invalid shortcut urls.

 This is a very old bug and I'm sure I reported it before. Just can't seem
 to find it anymore. But I just confirmed it still happens on 1.4.

 I know the fix should be simple. It's just a matter of using the template
 filter unlocalize or maybe {% localize off %} around the problematic code.
 But I fid this solution somehow not very elegant.

 Possibly affected files:

 admin/templates/admin/change_form.html
 admin/templates/admin/edit_inline/stacked.html
 admin/templates/admin/edit_inline/tabular.html

-- 
Ticket URL: <https://code.djangoproject.com/ticket/18660>
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 post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to