Commit 99e683fb88e490dff160b96e5b9663a447ebf482
1 parent
169e66a9
Exists in
master
and in
39 other branches
Intercepted Noosfero login url using rewrite
Showing
1 changed file
with
3 additions
and
1 deletions
Show diff stats
colab/proxy/noosfero/views.py
| ... | ... | @@ -7,4 +7,6 @@ from ..utils.views import ColabProxyView |
| 7 | 7 | class NoosferoProxyView(ColabProxyView): |
| 8 | 8 | app_label = 'noosfero' |
| 9 | 9 | diazo_theme_template = 'proxy/noosfero.html' |
| 10 | - login_url = '/social/account/login' | |
| 10 | + rewrite = ( | |
| 11 | + ('^/social/account/login(.*)$', r'{}\1'.format(settings.LOGIN_URL)), | |
| 12 | + ) | ... | ... |