Skip to content

Commit

Permalink
Merge pull request #182 from ror-community/404-error
Browse files Browse the repository at this point in the history
redirect 404 to info site and update fallback template text
  • Loading branch information
lizkrznarich committed Mar 27, 2023
2 parents b8c9f41 + c15897d commit 77af025
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion app/routes/error.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ import ENV from 'ror-app/config/environment';
export default Route.extend({
redirect: function() {
window.location.replace(ENV.BASE_URL + "/error");
}
}
});
9 changes: 4 additions & 5 deletions app/templates/error.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,10 @@
<h4 class="ml-3 mb-3 mt-3">Sorry, that page doesn’t exist</h4>
<div class="row">
<div class="col-md-10 col-sm-12">
{{#bs-alert dismissible=false type="warning"}}
The page you requested does not exist. Check the URL or <b>{{#link-to "organizations.index" (query-params
query=undefined page=undefined filter=undefined) }}go to the main search page{{/link-to}}</b> to browse all ROR records.
{{/bs-alert}}
The page or ROR ID you requested does not exist. <a href="/">Go to the ROR home page</a> or {{#link-to "organizations.index" (query-params
query=undefined page=undefined filter=undefined) }}go to the main search page{{/link-to}} to search/browse ROR records. For technical documentation, see <a href="https://ror.readme.io">https://ror.readme.io</a>.
</div>
</div>
</div>
</div>
</div>

0 comments on commit 77af025

Please sign in to comment.