diff options
author | Emmanuel ROHEE <erohee@amdocs.com> | 2014-08-18 17:11:08 +0200 |
---|---|---|
committer | Emmanuel ROHEE <erohee@amdocs.com> | 2014-08-18 17:11:08 +0200 |
commit | e5257b21b3cb6a1823159273b07a0ada25cdf8a8 (patch) | |
tree | aedb53fdf6c7c7ac1dc2443cbf29bb311262835d /webclient/app.js | |
parent | Update the default longpoll timeout time. (diff) | |
download | synapse-e5257b21b3cb6a1823159273b07a0ada25cdf8a8.tar.xz |
Support room alias in rooms URL (ex: http://127.0.0.1:8000/#/room/#public:localhost:8080)
Diffstat (limited to 'webclient/app.js')
-rw-r--r-- | webclient/app.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/webclient/app.js b/webclient/app.js index 8d64db92d3..193c11d461 100644 --- a/webclient/app.js +++ b/webclient/app.js @@ -37,6 +37,12 @@ matrixWebClient.config(['$routeProvider', '$provide', '$httpProvider', templateUrl: 'room/room.html', controller: 'RoomController' }). + when('/room/', { // room URL with room alias in it (ex: http://127.0.0.1:8000/#/room/#public:localhost:8080) will come here. + // The reason is that 2nd hash key breaks routeProvider parameters cutting so that the URL will not match with + // the previous '/room/:room_id' URL rule + templateUrl: 'room/room.html', + controller: 'RoomController' + }). when('/rooms', { templateUrl: 'rooms/rooms.html', controller: 'RoomsController' |