Skip to content

Commit

Permalink
update copy, include hostname
Browse files Browse the repository at this point in the history
  • Loading branch information
jxjj committed May 9, 2024
1 parent 58efc31 commit 2ba45ca
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
12 changes: 8 additions & 4 deletions app/views/errors/not_found.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,11 @@
<h1 class="error-page__heading">404</h1>
<h2 class="error-page__subheading">Not Found</h2>
<div class="error-page__message">
<p>The shortened Z-link <code><%= @requested_path %></code> does not exist.</p>
<p>If you are trying to access a specific resource, please double-check the URL or contact the person who provided you with the original link.</p>
</div>
</main>
<p>
The address
<% if @requested_path %>
<code><%= t('views.not_found.hostname') %><%= @requested_path %></code>
<% end %>
does not exist. Please double check the address, or contact the person who provided you with this link.
</p>
</main>
2 changes: 2 additions & 0 deletions config/locales/en.bootstrap.yml
Original file line number Diff line number Diff line change
Expand Up @@ -242,3 +242,5 @@ en:
submit: "Delete URLs"
submit_confirm: "Are you sure you want to delete these URLs?"
cancel: "Cancel"
not_found:
hostname: "z.umn.edu"

0 comments on commit 2ba45ca

Please sign in to comment.