Skip to content

Commit

Permalink
Adapt login path injection to cover the case where there is no contex…
Browse files Browse the repository at this point in the history
…t path

Relates with: #qubIT-Omnis-8500
  • Loading branch information
duarte-miranda committed Feb 6, 2025
1 parent 48dcd92 commit eb78088
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion base-theme/src/main/webapp/themes/ulisboa/403.html
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@
<p>{{i18n('resources.ULisboaThemeResources', 'error.not.authorized')}}</p>
<br />
{% if currentUser is empty %}
<p><a id="goToLogin" href="{{contextPath}}/{{loginPage}}">Login</a></p>
<p><a id="goToLogin" href="{{fullLoginPath}}">Login</a></p>
<script>
var link = document.getElementById("goToLogin");
var href = link.href;
Expand Down
2 changes: 1 addition & 1 deletion base-theme/src/main/webapp/themes/ulisboa/404.html
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@
<p>{{i18n('resources.ULisboaThemeResources', 'error.not.found.message')}}</p>
<br/>
{% if currentUser is empty %}
<p><a id="goToLogin" href="{{contextPath}}/{{loginPage}}">Login</a></p>
<p><a id="goToLogin" href="{{fullLoginPath}}">Login</a></p>
<script>
var link = document.getElementById("goToLogin");
var href = link.href;
Expand Down
2 changes: 1 addition & 1 deletion base-theme/src/main/webapp/themes/ulisboa/500.html
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@
<p>{{i18n('resources.ULisboaThemeResources', 'label.error.occurred.detail')}}</p>
{% if currentUser is null %}
<br />
<p><a id="goToLogin" href="{{contextPath}}/{{loginPage}}">Login</a></p>
<p><a id="goToLogin" href="{{fullLoginPath}}">Login</a></p>
<script>
var link = document.getElementById("goToLogin");
var href = link.href;
Expand Down

0 comments on commit eb78088

Please sign in to comment.