[Answer]-Using RedirectView.as_view in conjunction with i18n_patterns

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'))
)

Leave a comment