summary refs log tree commit diff
path: root/webclient/app-controller.js
diff options
context:
space:
mode:
authorEmmanuel ROHEE <erohee@amdocs.com>2014-08-22 11:43:54 +0200
committerEmmanuel ROHEE <erohee@amdocs.com>2014-08-22 11:44:09 +0200
commitdde50d4245136cdbd11ac3b4af42102945cd14f9 (patch)
treebdf0f420429116b2ca23aa2072e012ea51270bad /webclient/app-controller.js
parentMake the content repo work with in daemon mode. Return the full url on upload... (diff)
downloadsynapse-dde50d4245136cdbd11ac3b4af42102945cd14f9.tar.xz
Use $location.url instead of $location.path to get clean page URL without hash arguments of the previous page.
This happpens with room URL like http://127.0.0.1:8080/matrix/client/#/room/#public:localhost. The second hash part is transferred to the next page when using $location.path.
Diffstat (limited to 'webclient/app-controller.js')
-rw-r--r--webclient/app-controller.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/webclient/app-controller.js b/webclient/app-controller.js
index c53f29aa77..92ad01e4f9 100644
--- a/webclient/app-controller.js
+++ b/webclient/app-controller.js
@@ -66,7 +66,7 @@ angular.module('MatrixWebClientController', ['matrixService'])
         matrixService.saveConfig();
         
         // And go to the login page
-        $location.path("login");
+        $location.url("login");
     };
 
     // Listen to the event indicating that the access token is no longer valid.