n8n - 💡(How to fix) Fix Editor auto-redirects to new empty workflow when opening any API-created or API-updated workflow [1 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
n8n-io/n8n#29735Fetched 2026-05-05 06:02:59
View on GitHub
Comments
1
Participants
2
Timeline
4
Reactions
0
Author
Timeline (top)
commented ×1labeled ×1mentioned ×1subscribed ×1

Error Message

Describe the problem/error/question What is the error message (if any)? No error message visible to me. A toast notification appears at the bottom-right corner of the canvas during the

Root Cause

Cannot use the keyboard-shortcut copy/paste because the canvas auto-redirects before nodes appear. Sharing the workflow IDs in my account so the engineering team can inspect the database state directly:

Fix Action

Fix / Workaround

We use the n8n REST API as part of an automated workflow deployment pipeline. This bug means production workflows we create or modify via API become UI-inaccessible. Reproducible 100% of the time on this account. Blocks our production rollout entirely. We have not been able to identify a workaround at the API layer.

RAW_BUFFERClick to expand / collapse

Describe the problem/error/question

Workflows created via the public REST API render correctly when fetched via GET /api/v1/workflows/{id} but trigger a UI canvas redirect to a brand-new empty workflow when opened in the editor. The URL briefly loads with the correct workflow ID, then auto-redirects to /workflow/{newRandomId}?new=true with an empty canvas. A toast notification appears at the bottom-right of the canvas but flashes too quickly to read.

This blocks API-driven workflow deployment entirely. Workflows are runnable at the execution layer (the engine sees
them and would fire them) but they are unreachable in the editor.

The bug also reproduces on a UI-created blank workflow that is later updated via API: create blank in UI → save → call PUT /api/v1/workflows/{id} (full update) with populated nodes → reopen URL → same redirect.

I confirmed via the API that the workflow data is intact after the redirect — nodes and connections are populated correctly. The render failure happens client-side in the editor.

What is the error message (if any)?

No error message visible to me. A toast notification appears at the bottom-right corner of the canvas during the
redirect but it disappears too fast to read (likely under 200ms). Browser address bar visibly changes from /workflow/{originalId} → /workflow/{newRandomId}?new=true within ~1 second of page load.

Please share your workflow/screenshots/recording

Cannot use the keyboard-shortcut copy/paste because the canvas auto-redirects before nodes appear. Sharing the workflow IDs in my account so the engineering team can inspect the database state directly:

Currently affected (Personal project, projectId gIU19TTqfI0USokY):

  • PP36EZ90d7q3N4dg — WL_Dedup_Gate (9 nodes, populated via API after UI Save)
  • i2eOCJJ07hmBdYp0 — WL_Ingest_Classify (20 nodes, populated via API after UI Save)

Earlier examples renamed for evidence (same bug, different reproducer path — created entirely via API):

  • 6J4H7NBUEl2XT1HO — _BROKEN_WL_Dedup_Gate_old
  • V1iqnkfJ7d7vKFII — _BROKEN_WL_Ingest_Classify_old

Known-good reference workflow for comparison (created in UI months ago, renders correctly):

  • k7xzEmJUq2mZeieq — Lead Response - Approval Executor v2

Share the output returned by the last node

Not applicable — the bug is in the editor render path, not in execution. The workflows have not run yet because we
cannot activate them from the UI.

For diagnostic completeness, here is what GET /api/v1/workflows/{id} returns vs what would distinguish a working vs
broken workflow:

Field | Broken PP36EZ90d7q3N4dg | Working k7xzEmJUq2mZeieq
nodes.length : 9 | 23
connections : populated (8 edges) | populated (14 edges)
pinData : {} | not in structure response
activeVersionId : null | null (so this is not the cause) staticData : null | unknown meta : null | unknown
settings.executionOrder : "v1" | "v1"
Node id format : semantic strings | semantic strings (so format isn't cause)
projectId : gIU19TTqfI0USokY | gIU19TTqfI0USokY (same project)

Hypotheses I have ruled out with evidence:

  • activeVersionId: null — known-good v2 workflows also have it null
  • pinData: null — after UI Save and then API update, pinData is {} and is preserved through the update
  • Semantic vs UUID node IDs — known-good v2 workflow uses semantic IDs too
  • Project scope — both broken and working live in the same Personal project
  • Validation — validate-workflow returns zero errors at profile=runtime
  • Autofix — autofix-workflow with applyFixes=true applied a typeVersion bump but did not change the redirect behavior

Why this matters

We use the n8n REST API as part of an automated workflow deployment pipeline. This bug means production workflows we create or modify via API become UI-inaccessible. Reproducible 100% of the time on this account. Blocks our production rollout entirely. We have not been able to identify a workaround at the API layer.

Happy to provide browser console logs, a screen recording, or any other diagnostic data on request. The four workflow IDs above are still in the account if your engineering team wants to inspect the database state directly.

extent analysis

TL;DR

The issue can be resolved by investigating and fixing the client-side rendering issue in the editor, potentially related to the toast notification and redirect behavior.

Guidance

  • Investigate the toast notification that appears briefly during the redirect, as it may contain an error message or clue to the issue.
  • Compare the API responses for the broken and working workflows to identify any differences that could be causing the rendering issue.
  • Inspect the browser console logs for any errors or warnings that may be related to the redirect behavior.
  • Consider using the browser's developer tools to debug the client-side rendering issue and identify the cause of the redirect.

Example

No code snippet is provided as the issue is related to the client-side rendering and redirect behavior, which cannot be reproduced with a minimal code example.

Notes

The issue seems to be specific to the client-side rendering in the editor, and the API responses for the broken and working workflows do not show any obvious differences. Further investigation is needed to identify the root cause of the issue.

Recommendation

Apply a workaround by debugging the client-side rendering issue and identifying the cause of the redirect behavior, as the root cause is not immediately apparent and may require further investigation.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

n8n - 💡(How to fix) Fix Editor auto-redirects to new empty workflow when opening any API-created or API-updated workflow [1 comments, 2 participants]