Skip to main content
All CollectionsCreating A Course In XperiencifyOther Course Creation Help
Turning a course off (While Redirecting Students Somewhere Else)
Turning a course off (While Redirecting Students Somewhere Else)
Updated over 2 months ago

At some point, you may want to turn a course off and send your sudents somewhere else.

To do that:

  • Edit your course, and scroll down to the Course Settings area and click on Embed HTML/JS Code to open the section

  • Set the Enable custom code? to ON (green)

  • Add in the following code into the Head JS/HTML box:
    ​
    ​<script>location.replace('https://www.google.com');</script>

  • Replace the link "https://www.google.com" with a link of your choice, and all students entering this course will be instantly redirected to the new location.

Redirecting automatically after a specific date has passed #

<script> if( new Date() >= new Date('09/18/2018 00:18') ) { location.href = "https://google.com"; } </script>

Note: if you use a forward slash character as your redirect URL, then the student will be sent to your Marketplace page instead. Example:

<script> if( new Date() >= new Date('09/18/2018 00:18') ) { location.href = "/"; } </script>


​

Did this answer your question?