Ngx-admin: Pages Stop Working After Changing useHash to false

Created on 6 Jan 2018  路  3Comments  路  Source: akveo/ngx-admin

I am being redirected properly to the dashboard after I change the useHash to false. After that none of the pages work in the dashboard.
In the network inspector I see a 404 for all the assets.

Are there any other additional configuration that I need to take care of?

question

Most helpful comment

After switching to path location strategy you also need to set base href. The preferred way to configure it is to add a <base href> tag in the <head> section of the index.html.

<head>
  ...
  <base href="/">
  ...
</head>

All 3 comments

I also had the same problem.

"Refused to execute script from '' because its MIME type ('text/html') is not executable, and strict MIME type checking is enabled"

I have the same issue here... any update ?

After switching to path location strategy you also need to set base href. The preferred way to configure it is to add a <base href> tag in the <head> section of the index.html.

<head>
  ...
  <base href="/">
  ...
</head>
Was this page helpful?
0 / 5 - 0 ratings

Related issues

argnist picture argnist  路  4Comments

dreamerleolioa picture dreamerleolioa  路  4Comments

burtonator picture burtonator  路  3Comments

xandatspain picture xandatspain  路  3Comments

pulfabio picture pulfabio  路  4Comments