1👍
✅
Use a dynamic url using reverse
, /helpdesk/tickets/
is a static urlpattern which should probably throw a 404
if the language setting is other than default, in this case, english.
urlpatterns = i18n_patterns('',
(_(r'^helpdesk/tickets/$', HelpdeskView.as_view(), name='tickets')
(_(r'^support/$'), RedirectView.as_view(url=reverse_lazy('tickets'))
)
Source:stackexchange.com