René's URL Explorer Experiment


Title: fix(webapp): hard-navigate after creating an organization by claude[bot] · Pull Request #4530 · triggerdotdev/trigger.dev · GitHub

Open Graph Title: fix(webapp): hard-navigate after creating an organization by claude[bot] · Pull Request #4530 · triggerdotdev/trigger.dev

X Title: fix(webapp): hard-navigate after creating an organization by claude[bot] · Pull Request #4530 · triggerdotdev/trigger.dev

Description: Requested by Chris Arderne · Slack thread Before / After Before — submitting the new-organization form could drop you back on the creation form, with no error message anywhere and nothing to say the submit had succeeded, while the organization had in fact already been created. The natural next step was to click Create again — which created a second organization. After — submitting the form completes and takes you to your new organization. If creating it genuinely fails, you get an error message on the form with what you typed still there. How Once the organization row is committed, the action redirects to the new organization, which redirects on again to its first page. That whole chain was being followed client-side: the router received the action's redirect, fetched the destination's loaders, followed the next redirect, and then had to load the destination route's code chunk before it could render anything. That last step is where it broke. A capture of a real reproduction shows the navigation being aborted while the destination route's chunk was still loading. Remix's recovery for a chunk that fails to load is window.location.reload(), and because the router had not yet committed the new URL, the reload re-requested the URL still in the address bar — the creation form. The user landed back on the form with the organization already created, because the action had run to completion on the server. Clicking Create a second time then made a duplicate. The two success redirects now use redirectDocument() instead of redirect(). That returns the same redirect response with an added reload-document marker, which the router acts on by handing the destination straight to the browser as a full document navigation. It does this before it starts the destination's loaders, so neither those loaders nor the destination route's code chunk are ever fetched client-side — the step the navigation was being lost on no longer happens. The

is unchanged from main. Remix still handles the submission itself, so the client-side zod validation and the pending/disabled state on the Create button behave exactly as before. Deliberately not done: turning the submit itself into a native document POST via reloadDocument on the . An earlier revision of this PR did that, and it was removed. It takes the submission out of Remix's hands, and with it the pending navigation state that disables the Create button while the form is submitting — weakening the very double-click guard that stops the duplicate. It also re-initialises the page's React state on the error path, dropping the URL and company-size selections. Changing only the action's redirects leaves the submission, the validation and the disabled-button state exactly where they were, and hardens just the navigation after success. The action's failure path is also tightened up: it returns a conform-shaped result and logs the underlying error, so a genuine failure is rendered with its message and the submitted values preserved instead of resetting silently. Testing Tested locally against a dev webapp, driving the real form in a browser: A normal submit creates the organization and lands on the post-creation page. The action's redirect response carries the reload-document marker, and the destination is then loaded as a document navigation (302 to the organization, then 200 on its first page), with no client-side loader or route-chunk request for it — this is the behaviour change that closes the window. Injecting the original failure — aborting the destination route's chunk mid-navigation — reproduces the old symptom before the change and no longer reproduces it after. The Create button still becomes disabled while the form is submitting, confirming the existing double-click guard is intact. Exactly one organization row is created per submit, confirmed by querying Postgres per submitted name before and after each submit. Client-side validation still gates the submit: an empty name and a too-short name both show the inline zod error, never reach the action, and create no organization. Also ran pnpm run format, pnpm run lint:fix, and pnpm run typecheck --filter webapp — all clean. Follow-ups Not addressed here, to keep this change small: seedDefaultBillingAlerts is awaited inline after the organization row is committed, which adds latency to a request the user is waiting on. It cannot fail the request — it is wrapped in tryCatch and only logs — but it is still worth moving off the critical path. The inline await is deliberate, though: it stops the seed landing after the user's first alert edit, so any move off the request path has to preserve that ordering. The same client-side redirect chain exists on other creation forms, most notably project creation. Whether to harden those the same way is a separate call. Changelog Fixed the new-organization form so submitting it completes and takes you to your new organization, instead of sometimes landing you back on the creation form after the organization had already been created. Screenshots No visual changes — the form and the page it lands on are unchanged. The fix is in how the navigation after a successful submit is performed. 💯

Open Graph Description: Requested by Chris Arderne · Slack thread Before / After Before — submitting the new-organization form could drop you back on the creation form, with no error message anywhere and nothing to say th...

X Description: Requested by Chris Arderne · Slack thread Before / After Before — submitting the new-organization form could drop you back on the creation form, with no error message anywhere and nothing to say th...

Opengraph URL: https://github.com/triggerdotdev/trigger.dev/pull/4530

X: @github

direct link

Domain: github.com

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf
route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:f1502089-560a-22a0-5bf7-88dbf731101d
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idE76C:349533:5D01898:7D41415:6AFAF165
html-safe-nonce6ffe0661a7268bde3f32ed71e88ad8711fd888f1c3b38c4563944b8daf5e57a1
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNzZDOjM0OTUzMzo1RDAxODk4OjdENDE0MTU6NkFGQUYxNjUiLCJ2aXNpdG9yX2lkIjoiNzM2OTg1NDA1MTM4MDAzMTg0NSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac317fd950f1721f247dec6859dd60d01e5f0d0220b8c39625073c76a01c9a7f98
hovercard-subject-tagpull_request:4228552667
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/triggerdotdev/trigger.dev/pull/4530/files
twitter:imagehttps://avatars.githubusercontent.com/in/1236702?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/in/1236702?s=400&v=4
og:image:altRequested by Chris Arderne · Slack thread Before / After Before — submitting the new-organization form could drop you back on the creation form, with no error message anywhere and nothing to say th...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None0178036d8230524a18422872393ab7e708443ae4c2047f758560a2db870c1913
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/triggerdotdev/trigger.dev git https://github.com/triggerdotdev/trigger.dev.git
octolytics-dimension-user_id95297378
octolytics-dimension-user_logintriggerdotdev
octolytics-dimension-repository_id572570113
octolytics-dimension-repository_nwotriggerdotdev/trigger.dev
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id572570113
octolytics-dimension-repository_network_root_nwotriggerdotdev/trigger.dev
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releasea85e96a83bed7871993e6b1ffda24105928eee17
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/triggerdotdev/trigger.dev/pull/4530/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Ftriggerdotdev%2Ftrigger.dev%2Fpull%2F4530%2Ffiles
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Ftriggerdotdev%2Ftrigger.dev%2Fpull%2F4530%2Ffiles
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=triggerdotdev%2Ftrigger.dev
Reloadhttps://github.com/triggerdotdev/trigger.dev/pull/4530/files
Reloadhttps://github.com/triggerdotdev/trigger.dev/pull/4530/files
Reloadhttps://github.com/triggerdotdev/trigger.dev/pull/4530/files
triggerdotdevhttps://github.com/triggerdotdev
trigger.devhttps://github.com/triggerdotdev/trigger.dev
Codehttps://github.com/triggerdotdev/trigger.dev
Issues203 (203)https://github.com/triggerdotdev/trigger.dev/issues
Pull requests67 (67)https://github.com/triggerdotdev/trigger.dev/pulls
Discussionshttps://github.com/triggerdotdev/trigger.dev/discussions
Actionshttps://github.com/triggerdotdev/trigger.dev/actions
Projectshttps://github.com/triggerdotdev/trigger.dev/projects
Security and quality39 (39)https://github.com/triggerdotdev/trigger.dev/security
Insightshttps://github.com/triggerdotdev/trigger.dev/pulse
Sign up for GitHub https://github.com/signup?return_to=%2Ftriggerdotdev%2Ftrigger.dev%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Ftriggerdotdev%2Ftrigger.dev%2Fissues%2Fnew%2Fchoose
cardernehttps://github.com/carderne
mainhttps://github.com/triggerdotdev/trigger.dev/tree/main
claude/fix-org-create-form-error-resethttps://github.com/triggerdotdev/trigger.dev/tree/claude/fix-org-create-form-error-reset
Conversation 16 https://github.com/triggerdotdev/trigger.dev/pull/4530
Commits 1 https://github.com/triggerdotdev/trigger.dev/pull/4530/commits
Checks 49 https://github.com/triggerdotdev/trigger.dev/pull/4530/checks
Files changed https://github.com/triggerdotdev/trigger.dev/pull/4530/files
Please reload this pagehttps://github.com/triggerdotdev/trigger.dev/pull/4530/files
fix(webapp): hard-navigate after creating an organization https://github.com/triggerdotdev/trigger.dev/pull/4530/files#top
Show all changes 1 commit https://github.com/triggerdotdev/trigger.dev/pull/4530/files
52feba2 fix(webapp): hard-navigate after creating an organization claude Aug 7, 2026 https://github.com/triggerdotdev/trigger.dev/pull/4530/commits/52feba2114276e1818d4a9a7ecf0e4a5297e1e61
Clear filters https://github.com/triggerdotdev/trigger.dev/pull/4530/files
Please reload this pagehttps://github.com/triggerdotdev/trigger.dev/pull/4530/files
Please reload this pagehttps://github.com/triggerdotdev/trigger.dev/pull/4530/files
fix-new-organization-form-submit.md https://github.com/triggerdotdev/trigger.dev/pull/4530/files#diff-b6d0a82c345567220cf0af93ad717ca3946d708c00c507fdcd7725c5e408a7c2
route.tsx https://github.com/triggerdotdev/trigger.dev/pull/4530/files#diff-2ebdf009f4ae8c6756e22998ab43477dcb0c052371be49dde6e78d909ce84848
.server-changes/fix-new-organization-form-submit.mdhttps://github.com/triggerdotdev/trigger.dev/pull/4530/files#diff-b6d0a82c345567220cf0af93ad717ca3946d708c00c507fdcd7725c5e408a7c2
View file https://github.com/triggerdotdev/trigger.dev/blob/52feba2114276e1818d4a9a7ecf0e4a5297e1e61/.server-changes/fix-new-organization-form-submit.md
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/triggerdotdev/trigger.dev/pull/4530/{{ revealButtonHref }}
apps/webapp/app/routes/_app.orgs.new/route.tsxhttps://github.com/triggerdotdev/trigger.dev/pull/4530/files#diff-2ebdf009f4ae8c6756e22998ab43477dcb0c052371be49dde6e78d909ce84848
View file https://github.com/triggerdotdev/trigger.dev/blob/52feba2114276e1818d4a9a7ecf0e4a5297e1e61/apps/webapp/app/routes/_app.orgs.new/route.tsx
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/triggerdotdev/trigger.dev/pull/4530/{{ revealButtonHref }}
https://github.com/triggerdotdev/trigger.dev/pull/4530/files#diff-2ebdf009f4ae8c6756e22998ab43477dcb0c052371be49dde6e78d909ce84848
https://github.com/triggerdotdev/trigger.dev/pull/4530/files#diff-2ebdf009f4ae8c6756e22998ab43477dcb0c052371be49dde6e78d909ce84848
https://github.com/triggerdotdev/trigger.dev/pull/4530/files#diff-2ebdf009f4ae8c6756e22998ab43477dcb0c052371be49dde6e78d909ce84848
https://github.com/triggerdotdev/trigger.dev/pull/4530/files#diff-2ebdf009f4ae8c6756e22998ab43477dcb0c052371be49dde6e78d909ce84848
https://github.com/triggerdotdev/trigger.dev/pull/4530/files#diff-2ebdf009f4ae8c6756e22998ab43477dcb0c052371be49dde6e78d909ce84848
Please reload this pagehttps://github.com/triggerdotdev/trigger.dev/pull/4530/files
Please reload this pagehttps://github.com/triggerdotdev/trigger.dev/pull/4530/files
Please reload this pagehttps://github.com/triggerdotdev/trigger.dev/pull/4530/files
https://github.com/triggerdotdev/trigger.dev/pull/4530/files#diff-2ebdf009f4ae8c6756e22998ab43477dcb0c052371be49dde6e78d909ce84848
https://github.com/triggerdotdev/trigger.dev/pull/4530/files#diff-2ebdf009f4ae8c6756e22998ab43477dcb0c052371be49dde6e78d909ce84848
https://github.com/triggerdotdev/trigger.dev/pull/4530/files#diff-2ebdf009f4ae8c6756e22998ab43477dcb0c052371be49dde6e78d909ce84848
https://github.com/triggerdotdev/trigger.dev/pull/4530/files#diff-2ebdf009f4ae8c6756e22998ab43477dcb0c052371be49dde6e78d909ce84848
Please reload this pagehttps://github.com/triggerdotdev/trigger.dev/pull/4530/files
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.