From 4422e94f9bac54407728d501ced5c6b582e81b22 Mon Sep 17 00:00:00 2001 From: Riku Rouvila Date: Wed, 25 Nov 2015 20:40:31 +0200 Subject: [PATCH] redirect http -> https in production. thanks @pakastin --- src/jade/index.jade | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/jade/index.jade b/src/jade/index.jade index 682396d..98a140a 100644 --- a/src/jade/index.jade +++ b/src/jade/index.jade @@ -9,6 +9,10 @@ html meta(name='viewport', content='width=device-width, initial-scale=1') meta(name='apple-mobile-web-app-capable', content='yes') + script. + if(location.hostname === 'koodiklinikka.fi' && location.protocol !== 'https') { + location.protocol = 'https'; + } link(rel='apple-touch-icon', sizes='57x57', href='icons/apple-touch-icon-57x57.png') link(rel='apple-touch-icon', sizes='114x114', href='icons/apple-touch-icon-114x114.png') link(rel='apple-touch-icon', sizes='72x72', href='icons/apple-touch-icon-72x72.png')