Browse Source

removed ember mention from mithril router

Rafał Pitoń 9 years ago
parent
commit
3f00e41629
1 changed files with 5 additions and 1 deletions
  1. 5 1
      misago/frontend/misago/services/router.js

+ 5 - 1
misago/frontend/misago/services/router.js

@@ -43,6 +43,10 @@
       m.route(url);
     };
 
+    this.redirect = function(name) {
+      this.route(this.url(name));
+    };
+
     // Delegate clicks
     this.delegateElement = null;
 
@@ -71,7 +75,7 @@
         url = url.substr(location.host.length);
       }
 
-      // Is link within Ember app?
+      // Is link within JS app?
       if (url.substr(0, this.baseUrl.length) !== this.baseUrl) { return; }
 
       // Is link to media/static/avatar server?