-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move FSHSchool site to GitHub FHIR organization (#105)
* Replace links as necessary to point to correct locations for FSHOnline, FSH Finder, and Courses. * Update GitHub links to point to new location of site repo. * Update deployment to deploy to gh-pages branch (default) instead of separate fshschool.github.io repo. * Add custom 404 page to automatically redirect link to /FSHOnline, /fsh-finder, and /courses to their new web locations. (Note, redirects only work on GH pages; they do not work for local deployment).
- Loading branch information
Showing
9 changed files
with
44 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
{{ define "main" }} | ||
<main id="main"> | ||
<div id="content"> | ||
<h1 id="title">Not found</h1> | ||
<p>Oops! This page doesn't exist. Try going back to our <a href="{{ "/" | relURL }}">home page</a>.</p> | ||
</div> | ||
<script> | ||
window.onload = function () { | ||
if (/^\/FSHOnline(\/|$)/i.test(window.location.pathname)) { | ||
// redirect to the new location of courses | ||
const newLocation = `${window.location.protocol}{{ "//fshonline.fshschool.org" | safeJS }}${window.location.pathname.replace(/^\/FSHOnline/i, '')}${window.location.hash || ''}`; | ||
document.getElementById("content").innerHTML = `Redirecting to ${newLocation}`; | ||
window.location.replace(newLocation); | ||
} else if (/^\/(courses|fsh-finder)(\/|$)/i.test(window.location.pathname)) { | ||
// redirect to the new location of courses or fsh-finder | ||
const newLocation = `${window.location.protocol}{{ "//fshschool.github.io" | safeJS }}${window.location.pathname}${window.location.hash || ''}`; | ||
document.getElementById("content").innerHTML = `Redirecting to ${newLocation}`; | ||
window.location.replace(newLocation); | ||
} | ||
} | ||
</script> | ||
</main> | ||
{{ end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters