Skip to content

Commit

Permalink
Fixing redirects after logging in (#3989)
Browse files Browse the repository at this point in the history
* Fixing typo

* Sending next param into login

* Whitespace
  • Loading branch information
phildominguez-gsa authored Jun 17, 2024
1 parent a62c03b commit 6f559af
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion backend/templates/401.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<h1 class="font-sans-2xl">401 Error: Unauthorized</h1>
<div class="font-sans-lg">
<p>
Pleasse <a href="/openid/login/" class="usa-link">sign in</a> to view this page
Please <a href="/openid/login/" class="usa-link">sign in</a> to view this page
</p>
<a href="/openid/login/" class="usa-button">Sign in</a>
</div>
Expand Down
6 changes: 3 additions & 3 deletions backend/templates/includes/nav_primary.html
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@
</li>
{% comment %}
OMB_NUMBER and OMB_EXP_DATE are global.
Added in /config/settings, passed in /config/context_processors.py
Added in /config/settings, passed in /config/context_processors.py
{% endcomment %}
<li class="usa-nav__primary-item flex-align-self-center margin-left-2 width-card desktop:width-15 padding-top-2 desktop:padding-top-0">
<span class="text-primary-darker"><strong>OMB#</strong> {{ OMB_NUMBER }} <strong>EXP:</strong> {{ OMB_EXP_DATE }}</span>
Expand Down Expand Up @@ -185,7 +185,7 @@ <h2 class="usa-modal__heading" id="login-modal-heading">You must log in to conti
<div class="usa-modal__footer">
<ul class="usa-button-group">
<li class="usa-button-group__item">
<a href="/openid/login/">
<a href="{% url 'login' %}?next={{ request.path }}">
<button type="button"
class="usa-button sign-in-button"
id="sign-in"
Expand Down Expand Up @@ -214,4 +214,4 @@ <h2 class="usa-modal__heading" id="login-modal-heading">You must log in to conti
</div>
</div>
</nav>
</header>
</header>

0 comments on commit 6f559af

Please sign in to comment.