Forum Discussion

aqibafzal1000's avatar
aqibafzal1000
Copper Contributor
Jul 20, 2020

angular SPA 404 error on refresh

Hello,

I have created angular 2 app and deployed it to content editor webpart. Refresh page gives me 404 error on company tenant but on my personal tenant it works fine.

 

I have already updated app.module.ts with 

import { HashLocationStrategyLocationStrategy } from '@angular/common'
&
providers: [{provide: LocationStrategyuseClass: HashLocationStrategy}]
 
and it did not work.
 
any other suggestions please.
Thanks very much for your help.
 

Resources