Components are sandboxed to iframes and the default policies are listed in this file. The
allow-top-navigation is not part of them. Without this, it is not possible to have links in components that open a link (for instance in other page of the streamlit app) using the current tab (meaning with
Thanks for sharing this question! I’d recommend posting this in GitHub Issues as a formal enhancement request so our product/engineering teams can take a look!
Hello @Melaine did you achieve any success related to this issue?
Facing the same thing here.
Do not know if this will be useful for you
Note: the last part (after the comment
// Some weird bug) was added only because of a bug in our prod environment. May not be necessary. It was not necessary in dev environment.