diff --git a/uhepp_org/uhepp_vault/templates/registration/login.html b/uhepp_org/uhepp_vault/templates/registration/login.html index ce44275f8677109feb42a7f2c0e3fff6a9b35ab9..2f3d86f3f689cc84d870db1d81d44666f5760cb1 100644 --- a/uhepp_org/uhepp_vault/templates/registration/login.html +++ b/uhepp_org/uhepp_vault/templates/registration/login.html @@ -19,7 +19,7 @@ <small class="text-muted">preferred</small> </h2> <p>Use your CERN account to sign in or create a new account.</p> - <p><a tabindex="0" class="btn btn-primary" href="{% url 'oidc_authentication_init' %}">Sign in with CERN SSO</a></p> + <p><a tabindex="0" class="btn btn-primary" href="{% url 'oidc_authentication_init' %}{% if request.GET.next %}?next={{ request.GET.next }}{% endif %}">Sign in with CERN SSO</a></p> </div> <div class="col-md-6 px-4"> <h2 class="mt-2">Uhepp hub account</h2>