Skip to content

Commit

Permalink
Only include next parameter when it is set in the request
Browse files Browse the repository at this point in the history
  • Loading branch information
rlskoeser committed Oct 8, 2024
1 parent 9337b9c commit 5b85d5c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pucas/templates/pucas/pu-cas-login.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{# customized CAS login snippet with Princeton branding #}
{# use with pu-login.css for styles #}
<div class="cas-login">
<a href="{% url 'cas_ng_login' %}?next={{ request.GET.next }}"><span class="button grp-button">Login with Princeton NetID</span></a>
<a href="{% url 'cas_ng_login' %}{% if request.GET.next %}?next={{ request.GET.next }}{% endif %}"><span class="button grp-button">Login with Princeton NetID</span></a>
</div>

<div class="cas-alt"><p>Or login with a local site account:</p></div>
Expand Down

0 comments on commit 5b85d5c

Please sign in to comment.