1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Anuncie Aqui
    Anuncie aqui você Também: fdantas@4each.com.br

angular ssr is not accepting .pdf in routing

Discussão em 'Angular' iniciado por samradhi.m, Setembro 27, 2024.

  1. samradhi.m

    samradhi.m Guest

    I am using an angular application with server side rendering (ssr) enabled . i want to open a pdf file in browser in new tab with link like http://localhost:4200/view-file/Final-online-booklet-27-August-2024.pdf usinfg angular routing.

    http://localhost:4200/view-file/Final-online-booklet-27-August-2024.pdf it is saying like below.

    Cannot GET /view-file/demo.pdf

    in app-routing.module.ts { path: 'view-file/:slug', loadComponent: () => import('./shared/components/view-file/view-file.component').then( (c) => c.ViewFileComponent ), data: { id: 4 }, },

    Continue reading...

Compartilhe esta Página