[Vuejs]-VueJS : open a PDF file using the default player in navigator

0👍

Well the issue resolved in router config…

  {
    path: '*',
    redirect() {
      return Trans.getUserSupportedLang()
    }
  }

Caught the request and try to serve the link as a route…
Removing that route works fine in localhost.

Still, on a web hosting it works perfectly fine with that last route.

0👍

  1. Put the PDF doc in your static directory of Vue Project
  2. Put the PDF doc outsite the project, and set a Load balance to serve PDF url request

Leave a comment