Reverting back to using secure = true with Meteor.absoluteUrl() and added the

force-ssl package to make sure docs are always served via SSL.
This commit is contained in:
hwillson
2015-02-26 14:17:01 -05:00
parent d1a783d6cf
commit c8ebdd2473
3 changed files with 3 additions and 5 deletions

View File

@@ -14,3 +14,4 @@ reload-safetybelt
simple:markdown-templating
simple:highlight.js
less
force-ssl

View File

@@ -14,6 +14,7 @@ deps@1.0.6
ejson@1.0.5
fastclick@1.0.2
follower-livedata@1.0.3
force-ssl@1.0.3
geojson-utils@1.0.2
html-tools@1.0.3
htmljs@1.0.3

View File

@@ -1,7 +1,3 @@
navigate = function (hash) {
var secure = false;
if (/^https:/.test(window.location.href)) {
secure = true;
}
window.location.replace(Meteor.absoluteUrl(null, { secure: secure }) + hash);
window.location.replace(Meteor.absoluteUrl(null, { secure: true }) + hash);
};