I’m trying to add clickable links within an iframe component in NocoBase that navigate to internal pages (e.g., /admin/xxxxx
), but I’m encountering navigation issues.
What I’ve Tried
-
HTML anchor tags with various targets:
<a href="/admin/xxxxx" target="_parent">Go to Admin Page</a> <a href="/admin/xxxxx" target="_top">Go to Admin Page</a>
-
JavaScript approaches:
<a href="#" onclick="window.parent.location.href='/admin/xxxxx'; return false;">Navigate</a> <button onclick="window.top.location.pathname='/admin/xxxxx'">Navigate</button>
Current Behavior
- Links either don’t respond to clicks
- Open blank windows within the iframe
- Show “blank#blocked” in the URL bar
Questions
- What is the recommended way to create internal page navigation links within NocoBase iframes?