From 2441591ea7db9654c8199130ac963c6992945ed7 Mon Sep 17 00:00:00 2001 From: Anthony Kuske Date: Wed, 5 Jul 2017 22:36:08 +0100 Subject: [PATCH] feature(dev-server): add support for path-based routing * feature(dev-server): add fallback route to /index.html to support path based routing * fix(dev-server): Fix ion-dev css/js when loaded with a path * remove injector changes --- src/dev-server/http-server.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/dev-server/http-server.ts b/src/dev-server/http-server.ts index 59a95dd5..b1f6829f 100644 --- a/src/dev-server/http-server.ts +++ b/src/dev-server/http-server.ts @@ -46,6 +46,9 @@ export function createHttpServer(config: ServeConfig): express.Application { app.get('/cordova_plugins.js', servePlatformResource); app.get('/plugins/*', servePlatformResource); + // Fallback route - send to index.html to allow deeplinker to handle path. + app.use(serveIndex); + if (config.useProxy) { setupProxies(app); }