Allow context to work with docs with forward slashes in their ID (#14314) (#14390)

Apparently even if the forward slashes are encoded in the href on the page the browser will automatically decode them. This prevented the context route from matching the URL when the anchor ID contained forward slashes. Since no route matched, the default route (discover) would get loaded. To fix this, we simply add a wildcard to the end of the context route so it consumes the forward slashes.
This commit is contained in:
Matt Bargar 2017-10-10 12:43:48 -04:00 committed by GitHub
parent 39253a27ed
commit 9f51df962a

View file

@ -9,7 +9,7 @@ import contextAppRouteTemplate from './index.html';
uiRoutes
.when('/context/:indexPatternId/:type/:id', {
.when('/context/:indexPatternId/:type/:id*', {
controller: ContextAppRouteController,
controllerAs: 'contextAppRoute',
resolve: {