[TE] Revert HTTPS redirect
@@ -23,9 +23,10 @@ export default Route.extend(ApplicationRouteMixin, {
// calling this._super to trigger ember-simple-auth's hook
this._super(...arguments);
- if (config.environment === 'production' && location.protocol != 'https:') {
- location.href = 'https:' + window.location.href.substring(window.location.protocol.length);
- }
+ // TODO: Evaluate how to get the environment without ember-cli running in backend.
+ // if (config.environment === 'production' && location.protocol != 'https:') {
+ // location.href = 'https:' + window.location.href.substring(window.location.protocol.length);
+ // }
// invalidates session if cookie expired
if (this.get('session.isAuthenticated')) {
