This may be something simple to fix but when I run my dash app locally and use my nav links to navigate to different sections of the single page it seems to work fine looking like this "http://127.0.0.1:8050/#other-section.
But when the app is embedded in a host app the hash hrefs seem to be replacing the host app url.
My guess is that this is happening because your links are defaulting to the base url of the application as a whole.
You might have to add the other url to the beef when hosting it inside the other app. This does make it tricky to make sure everything is working, since when testing you won’t be able to click on the links in your local.
The part of the URL that is after the base URL changes depending on which pathway the report is accessed from. Do you know if this can be pulled through in dcc.Location or get_relative_path()?
It definitely can be pulled from there, but is it supposed to be an absolute path for the url? If so, you’d need to make sure that it is routed correctly.
I believe it would a relative path.
The URL template would be exactly like this: www.mywebsite.com/reports/{random-letters-and-numbers-to-generate-specific-app-content}/my-app
everything up to .com is being replaced.
Locally, removing the external_link=True stops the navlinks from working but left it the functionality seems to work. Not sure how that would have an affect in staging env so would need to test.