It sounds like the redirect from Dropbox itself is working properly. I'm afraid I can't offer help on the general server/browser set up on the receiving side. E.g., the "CppWebBrowserNavigateError" doesn't appear to be an error from Dropbox.
Exactly what you have the receiving server/page do is up to you. Apologies I can't be more helpful!
We love to learn from the educators who use Dropbox. Whether you teach kids, teens, adults or a combination of all three, we want to know what apps and integrations you use with Dropbox to help with teaching. Which of the ones below is your favorite, or most used tool?