I'm coming across an edge case issue where if a user navigates around a few Nuxt routes, clicks the websites "logo" which is an anchor tag back home, then clicks the browsers native back button and then finally clicks a link which is supposed to open a pdf, it redirects to my 404 page.
If the user clicks the pdf link upon page load it behaves as expected. Not sure what is going on here? I tried to add a method to force window.open on the pdf and it is still broken.
Anchor example:
<a
class="text--uppercase decorate-hover"
@click.prevent="forceHrefToPdf('Instructions.pdf')"
>
Instructions
</a>
Method:
forceHrefToPdf(pdf) {
window.open(pdf, "_blank")
}
PDF is inside the /root/static directory.