Skip to content

Commit

Permalink
Merge pull request usnistgov#250 from r-xyz/landing-page-script-name-fix
Browse files Browse the repository at this point in the history
Landing page script name fix
  • Loading branch information
rptmat57 authored Sep 5, 2024
2 parents d30e136 + 2ab9c93 commit 8f9e8af
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion NEMO/templates/landing.html
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ <h3>Current {{ facility_name }} use</h3>
{% for choice in landing_page_choices %}
{% if forloop.counter0|divisibleby:4 %}<div class="row">{% endif %}
<div class="col-md-3 text-center" style="margin-bottom:30px">
<a href="{{ choice.url }}"
<a href="{{ script_name }}{{ choice.url }}"
{% if choice.open_in_new_tab %}target="_blank" {% else %}onclick="show_spinner();"{% endif %}
{% if choice.secure_referral %}rel="noopener noreferrer"{% endif %}
style="text-decoration: none !important">
Expand Down
1 change: 1 addition & 0 deletions NEMO/views/landing.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ def landing(request):
"landing_page_choices": landing_page_choices,
"self_log_in": able_to_self_log_in_to_area(request.user),
"self_log_out": able_to_self_log_out_of_area(request.user),
"script_name": settings.FORCE_SCRIPT_NAME,
}
return render(request, "landing.html", dictionary)

Expand Down

0 comments on commit 8f9e8af

Please sign in to comment.