For some reason if I have my routes as
{ path: '/notifications', component: NotificationsPage, master: true, detailRoutes: [ { path: '/detail/:id', component: NotificationDetailsPage }, ] },
and I try to access localhost:8080/notifications it works, but localhost:8080/details/foo won’t work. I get the following error:
The resource from “http://localhost:8080/detail/js/app.js” was blocked due to MIME type (“text/html”) mismatch (X-Content-Type-Options: nosniff).
I don’t know why I’m getting that error, it happens with any route that has more than one level in depth within it, such as the details page, or if I had something like 'user/profile" it would fail also, while trying to get to the /user/js/app.js file.
I’m aware that file doesn’t exist, what I don’t know is why it is trying to access it in the first place, it’s just another route, no need to look for another JS.
Am I missing something here?