React can't access public folder

Product: WebViewer

Please give a brief summary of your issue:
Cannot GET /ui/index.html

Please describe your issue and provide steps to reproduce it:
I’m working with React router and webpack, and I can’t find a way for /ui/index.html to be found. I can access it when copy public folder content to build, but router redirect /ui/index.html to my default route.

Hello duyvbkse150520,

Welcome to the PDFTron Community!

We have a small guide here on this issue:

You can also read about how to implement our UI in your own application here:

Let me know if this works for you

Best Regards,
Tyler Gordon
Web Development Support Engineer
PDFTron Systems, Inc.