Skip to content

Commit

Permalink
docs(index): redirect to https
Browse files Browse the repository at this point in the history
  • Loading branch information
levithomason committed Aug 20, 2017
1 parent baf2196 commit d2fe58c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions docs/app/index.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@
href="//cdnjs.cloudflare.com/ajax/libs/semantic-ui/<%= htmlWebpackPlugin.options.versions.sui %>/semantic.min.css">
<title>Semantic UI React</title>
<script>
// Redirect to HTTPs
// We need poor-mans client side redirects because we persist app router urls in localStorage
if (location.hostname === 'react.semantic-ui.com' && location.protocol !== 'https:') {
location.href = location.href.replace('http:', 'https:')
}
// Apply gh-pages SPA redirect that was applied in 404.html
// ----------------------------------------
(function() {
Expand Down

0 comments on commit d2fe58c

Please sign in to comment.