﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
17568	i18n_patterns and LOGIN_URL, LOGOUT_URL, LOGIN_REDIRECT_URL	anonymous	neaf	"Hi,

There is some bug with i18n_patterns and redirection after login/logout action. Sample code:

{{{

    #urls.py

    urlpatterns = i18n_patterns('',
        ...
        (_(r'^auth/'), include('apps.my_auth.urls', namespace='auth')),
    )

    #settings.py

    ...
    gettext_noop = lambda s: s

    LOGIN_URL = gettext_noop('/auth/login/')

    LOGOUT_URL = gettext_noop('/auth/logout/')

    LOGIN_REDIRECT_URL = gettext_noop('/accounts/profile/')

}}}

The urls are translated (for ""en"" and ""nl"" language). Now login at http://server.com/en/auth/login/ redirect to /en/accounts/profile/ and also http://server.com/nl/nl_auth/nl_login/ redirect to /nl/accounts/profile/ but should to /nl/nl_accounts/nl_profile/

I think there is a bug.

Thanks.

"	Bug	closed	Documentation	1.4-alpha-1	Normal	fixed			Ready for checkin	1	0	0	0	0	0
