Bug in Webkit when redirecting with anchor/fragment

28 views
Skip to first unread message

sain...@gmail.com

unread,
Sep 2, 2014, 8:57:01 AM9/2/14
to django...@googlegroups.com
Hello,

I would like a workaround for this 5.5 year old Webkit bug which remove the anchor when redirecting:
https://bugs.webkit.org/show_bug.cgi?id=24175
https://code.djangoproject.com/ticket/9967

Using language prefix in the URL (https://docs.djangoproject.com/en/dev/topics/i18n/translation/#language-prefix-in-url-patterns), I cannot provide an language-independent URL with an anchor (example.com/index#description) because Safari will redirect to just example.com/en/index.

It may also cause problem with redirection from www.example.com to example.com or, or http://example.com to https://example.com.

Does someone know a good workaround with Django ?
I can always use parameters with example.com/index?ref=description but it seems really not elegant.

Thanks !

Reply all
Reply to author
Forward
0 new messages