Link in new tab
Abierto
- Lenguaje dominante
- TypeScript
- Estrellas
- 25.7k
- Forks
- 7.9k
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Descripción
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.
Guía de contribución
Evaluación
Este issue todavía no se ha evaluado.