brocaar/django-i18nurls — Issue #8: Do not reverse with translation if current language is equal to LANGUAGE_CODE in settings
Author: hash3g
Created: 2012-02-23 17:28:41+00:00
State: open

Now if you will create urlpattern with url(_(r'^$'), 'your.app.views.mainpage', name='home'), homepage will be redirected to / that is unexpected behaviour.

What expected

```bash
>>> activate('en')
>>> reverse('news:category', kwargs={'slug': 'recent'})
'/news/category/recent/'

>>> activate('ru')
>>> reverse('news:category', kwargs={'slug': 'recent'})
'/ru/news/category/recent/'
```