Keep query string then redirecting from / to /login
This commit is contained in:
parent
797b6c6e61
commit
5bd06d47c5
2 changed files with 5 additions and 1 deletions
|
@ -14,6 +14,7 @@ Added
|
|||
-----
|
||||
* Support for python 3.6 and Django 1.11
|
||||
* Support for Django 2.0
|
||||
* Keep query string then redirecting from / to /login
|
||||
|
||||
Fixes
|
||||
-----
|
||||
|
|
|
@ -19,7 +19,10 @@ from cas_server import views
|
|||
app_name = "cas_server"
|
||||
|
||||
urlpatterns = [
|
||||
url(r'^$', RedirectView.as_view(pattern_name="cas_server:login", permanent=False)),
|
||||
url(
|
||||
r'^$',
|
||||
RedirectView.as_view(pattern_name="cas_server:login", permanent=False, query_string=True)
|
||||
),
|
||||
url(
|
||||
'^login$',
|
||||
sensitive_post_parameters('password')(
|
||||
|
|
Loading…
Reference in a new issue