diff --git a/scripts/e2e/e2e.template.dev.html b/scripts/e2e/e2e.template.dev.html
index 63ccbcc220..8c61c1c471 100644
--- a/scripts/e2e/e2e.template.dev.html
+++ b/scripts/e2e/e2e.template.dev.html
@@ -48,7 +48,7 @@
'@angular/http': '/node_modules/@angular/http/bundles/http.umd.js',
'@angular/platform-browser': '/node_modules/@angular/platform-browser/bundles/platform-browser.umd.js',
'@angular/platform-browser-dynamic': '/node_modules/@angular/platform-browser-dynamic/bundles/platform-browser-dynamic.umd.js',
- 'ionic-angular': 'http://localhost:' + port,
+ 'ionic-angular': location.protocol + '//' + location.host,
'rxjs': '/node_modules/rxjs'
},
packages: {