diff --git a/app/instance-initializers/ember-href-to.js b/app/instance-initializers/ember-href-to.js
index <HASH>..<HASH> 100644
--- a/app/instance-initializers/ember-href-to.js
+++ b/app/instance-initializers/ember-href-to.js
@@ -8,10 +8,15 @@ function _getNormalisedRootUrl(router) {
   return rootURL;
 }
 
+function _lookupRouter(applicationInstance) {
+  const container = 'lookup' in applicationInstance ? applicationInstance : applicationInstance.container;
+  return container.lookup('router:main');
+}
+
 export default {
   name: 'ember-href-to',
   initialize: function(applicationInstance) {
-    let router = applicationInstance.container.lookup('router:main');
+    let router = _lookupRouter(applicationInstance);
     let rootURL = _getNormalisedRootUrl(router);
     let $body = Em.$(document.body);
Fix router lookup to avoid deprecations in ember >= 2