Hi there,
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 href="_top"
or href="_parent"
.
Is it possible to modify this restriction? I found this answer but it is a bit hacky as it uses javascript to directly update the attributes of the sandbox.
Hey @Melaine,
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!