Link in new tab
Open
- Dominant language
- TypeScript
- Stars
- 25.7k
- Forks
- 7.9k
- PR merge metrics
- No merged PRs in 30d
Description
I have created an Application and deployed it in Tomcat but when I am trying to open a link in new tab I get 404 error.
I have removed # from the URL by removing
const config: ExtraOptions = {
useHash: true,
};
and config parameter from RouterModule.forRoot(routes) in AppRoutingModule file.
As my application has context root so added APP_BASSE_HREF in AppModule.
providers: [
TokenStorage,
{ provide: APP_BASE_HREF, useValue: '//' },
{
provide: HTTP_INTERCEPTORS,
useClass: Interceptor,
multi: true
}
],
Please help me to fix this issue.
Contributor guide
Assessment
This issue has not been assessed yet.