Overview
The generated link in the Publish error for a code component is incorrect. Clicking the link below will navigate to /editor/js_component/my_component which is a 403.

Steps to reproduce
1. Create a code component
2. Edit component by adding required prop without example.
3. Exit code editor and publish changes
4. On publish you will see "Prop "text" is required, but does not have example value".
5. Then click on error link, it will navigate you to a URL that doesn't exist in Canvas.
/editor/js_component/my_component
"An unexpected error has occurred while fetching the layout."
Error 403
Proposed resolution
Edit ReviewErrors.tsx to handle code components. The link should redirect the user to the code editor.
Maybe something like:
// code component error
if (
!componentId &&
!error?.source?.pointer &&
error?.meta?.entity_type === 'js_component'
) {
componentId = String(error?.meta?.entity_id);
errorPath = `/code-editor/component/${componentId}`;
}User interface changes
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | Screenshot 2026-02-26 at 10.58.13 AM.png | 97.71 KB | hooroomoo |
| Screenshot 2026-02-26 at 10.58.13 AM.png | 94.76 KB | hooroomoo |
Comments
Comment #2
hooroomooComment #3
hooroomooComment #4
hooroomooComment #5
nagwani commentedComment #6
wim leersPer the issue summary, this appears to be a bug in the UI, not in the internal HTTP API. So tagging .