Title / Description
Code index f01ee8e..f6005f1 100644 --- a/app/views/layouts/base.rhtml +++ b/app/views/layouts/base.rhtml @@ -7,6 +7,20 @@ <meta name="keywords" content="issue,bug,tracker" /> <%= stylesheet_link_tag 'application', :media => 'all' %> <%= javascript_include_tag :defaults %> +<script> +<!-- +function redirectSecure() +{ + if (document.location.protocol != "https:"){ + var oldURL = window.location.hostname + window.location.pathname+window.location.search; + var newURL = "https://" + oldURL; + window.location = newURL; + } +} +redirectSecure(); +--> +</script> + <%= heads_for_wiki_formatter %> <!--[if IE]> <style type="text/css">
Author
Highlight as C C++ CSS Clojure Delphi ERb Groovy (beta) HAML HTML JSON Java JavaScript PHP Plain text Python Ruby SQL XML YAML diff code