How to include pdf link in response.js file

I want to be able to open in a new tab the PDF that I have in my included folder. I use create-react-app and set a link to open a new tab using pdf, in my local mode it works, but when I create it the tab loads as a blank page with HTTP ERROR 404.

in my react component this is how i configured it

<NavLink to={PDF} target='_blank' className='nav-link'>pdf</NavLink>

      

as I mentioned earlier, in my local mode it works fine, but in my assembly it opens a 404 page.

+3


source to share


1 answer


as I mentioned earlier, in my local mode it works perfect, but in my assembly it opens a 404 page.

This is a server error.

Find out what's wrong



  • Enter url
  • Check your browser console for failed web requests

Fix

Once you have the url, check why there is no file on that url.

0


source







All Articles