{"action":"created","issue":{"url":"https://api.github.com/repos/aspnet/JavaScriptServices/issues/1518","repository_url":"https://api.github.com/repos/aspnet/JavaScriptServices","labels_url":"https://api.github.com/repos/aspnet/JavaScriptServices/issues/1518/labels{/name}","comments_url":"https://api.github.com/repos/aspnet/JavaScriptServices/issues/1518/comments","events_url":"https://api.github.com/repos/aspnet/JavaScriptServices/issues/1518/events","html_url":"https://github.com/aspnet/JavaScriptServices/issues/1518","id":294850191,"number":1518,"title":"Host spa(s) from paths off MVC app","user":{"login":"tbertenshaw","id":2010002,"avatar_url":"https://avatars1.githubusercontent.com/u/2010002?v=4","gravatar_id":"","url":"https://api.github.com/users/tbertenshaw","html_url":"https://github.com/tbertenshaw","followers_url":"https://api.github.com/users/tbertenshaw/followers","following_url":"https://api.github.com/users/tbertenshaw/following{/other_user}","gists_url":"https://api.github.com/users/tbertenshaw/gists{/gist_id}","starred_url":"https://api.github.com/users/tbertenshaw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tbertenshaw/subscriptions","organizations_url":"https://api.github.com/users/tbertenshaw/orgs","repos_url":"https://api.github.com/users/tbertenshaw/repos","events_url":"https://api.github.com/users/tbertenshaw/events{/privacy}","received_events_url":"https://api.github.com/users/tbertenshaw/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2018-02-06T17:40:42Z","updated_at":"2018-02-14T14:09:48Z","closed_at":"2018-02-07T14:13:14Z","author_association":"NONE","body":"Is it possible to define the spa routes as paths off an existing mvc site?\r\nI.e. I want all normal defined mvc routing to work as expected, however if the relative path off the root is `<base href=\"/memberspa\">` for example (defined in the index.html) then i want that to serve my spa. Currently it seems that if i hit a route that exists by a existing mvc controller then that it is served by the controller. But if i pass any route which doesn't exist it loads my spa. i.e. `/thisdoesnotexist` redirects to `/memberspa`. But /home (which is served by my home controller) correctly  is rendered by the home/index method.\r\n\r\nIf this is possible then i would ideally want to have two separate spa's served from paths off the sites root. The other potentially being `/admin` .\r\n\r\nI'm currently using the following in my startup.cs\r\n\r\n```csharp\r\n   if (env.IsDevelopment())\r\n            {\r\n                app.UseBrowserLink();\r\n                app.UseDeveloperExceptionPage();\r\n                app.UseDatabaseErrorPage();\r\n            }\r\n            else\r\n            {\r\n                app.UseExceptionHandler(\"/Error\");\r\n            }\r\n\r\n            app.UseStaticFiles();\r\n            app.UseSpaStaticFiles();\r\n            app.UseAuthentication();\r\n\r\n            app.UseMvc(routes =>\r\n            {\r\n                routes.MapRoute(\r\n                    name: \"default\",\r\n                    template: \"{controller}/{action=Index}/{id?}\");\r\n            });\r\n\r\n            app.UseSpa(spa =>\r\n            {\r\n                spa.Options.SourcePath = \"ClientApp\";\r\n             \r\n                if (env.IsDevelopment())\r\n                {\r\n                    spa.UseAngularCliServer(npmScript: \"start\");\r\n                }\r\n            });\r\n        }\r\n```"},"comment":{"url":"https://api.github.com/repos/aspnet/JavaScriptServices/issues/comments/365617856","html_url":"https://github.com/aspnet/JavaScriptServices/issues/1518#issuecomment-365617856","issue_url":"https://api.github.com/repos/aspnet/JavaScriptServices/issues/1518","id":365617856,"user":{"login":"AlwaysAbhl001","id":26591838,"avatar_url":"https://avatars1.githubusercontent.com/u/26591838?v=4","gravatar_id":"","url":"https://api.github.com/users/AlwaysAbhl001","html_url":"https://github.com/AlwaysAbhl001","followers_url":"https://api.github.com/users/AlwaysAbhl001/followers","following_url":"https://api.github.com/users/AlwaysAbhl001/following{/other_user}","gists_url":"https://api.github.com/users/AlwaysAbhl001/gists{/gist_id}","starred_url":"https://api.github.com/users/AlwaysAbhl001/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AlwaysAbhl001/subscriptions","organizations_url":"https://api.github.com/users/AlwaysAbhl001/orgs","repos_url":"https://api.github.com/users/AlwaysAbhl001/repos","events_url":"https://api.github.com/users/AlwaysAbhl001/events{/privacy}","received_events_url":"https://api.github.com/users/AlwaysAbhl001/received_events","type":"User","site_admin":false},"created_at":"2018-02-14T14:09:48Z","updated_at":"2018-02-14T14:09:48Z","author_association":"NONE","body":"Any of you help me to sort it. Like previous version we load angular components from .cshtml\r\n`<app-root></app-root>`\r\n\r\nfor new angular 5 template , I'm unable make it possible. How could I achieve it. if not suggest good process. "}}
{"actor":{"display_login":"AlwaysAbhl001"}}