Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

fix: routing-form org redirects when profile slug equals legacy slug#25003

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
anikdhabal merged 10 commits intomainfromfix/routing-form-org-redirect
Nov 18, 2025

Conversation

@anikdhabal
Copy link
Contributor

@anikdhabalanikdhabal commentedNov 7, 2025
edited
Loading

What does this PR do?

  • prevent routing forms from falling back to app.cal.com when the redirect slug matches both the legacy and org usernames
  • ensure org-origin metadata is used for personal routing form redirects after migration

@keithwillcodekeithwillcode added the corearea: core, team members only labelNov 7, 2025
@vercel
Copy link

vercelbot commentedNov 7, 2025
edited
Loading

The latest updates on your projects. Learn more aboutVercel for GitHub.

2 Skipped Deployments
ProjectDeploymentPreviewCommentsUpdated (UTC)
calIgnoredIgnoredNov 18, 2025 8:44am
cal-euIgnoredIgnoredNov 18, 2025 8:44am

@anikdhabalanikdhabalenabled auto-merge (squash)November 7, 2025 16:47
Copy link
Contributor

@cubic-dev-aicubic-dev-aibot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

1 issue found across 1 file

Prompt for AI agents (all 1 issues)
Understand the root cause of the following 1 issues and fix them.<file name="packages/app-store/routing-forms/getEventTypeRedirectUrl.ts"><violation number="1" location="packages/app-store/routing-forms/getEventTypeRedirectUrl.ts:88">Accessing form.user.username will throw when existing form objects omit the new user field. Please guard the access (e.g., with optional chaining) so legacy callers without form.user keep working.</violation></file>

React with 👍 or 👎 to teach cubic. Mention@cubic-dev-ai to give feedback, ask questions, or re-run the review.

Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>
Copy link
Contributor

@cubic-dev-aicubic-dev-aibot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

No issues found across 1 file

Copy link
Contributor

@cubic-dev-aicubic-dev-aibot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

No issues found across 1 file


if(usernameInRedirectUrl&&form.nonOrgUsername){
constisEventTypeRedirectToOldUser=usernameInRedirectUrl===form.nonOrgUsername;
consthasSameProfileUsername=form.user?.username===form.nonOrgUsername;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

form.user.username seems like the User table username for the owner of the form. which isn't the profile username. Profile username is what we have in Profile table.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

I think we need the correct profile username here.

Copy link
ContributorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

It is already the corrected one; we enrich the user with their profile
image

hariombalhara reacted with laugh emoji
Copy link
Member

@hariombalharahariombalhara left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Left a comment

@github-actionsgithub-actionsbot marked this pull request as draftNovember 11, 2025 09:17
auto-merge was automatically disabledNovember 11, 2025 09:17

Pull request was converted to draft

@anikdhabalanikdhabal marked this pull request as ready for reviewNovember 12, 2025 04:03
@anikdhabalanikdhabalenabled auto-merge (squash)November 12, 2025 04:03
@anikdhabalanikdhabal merged commit908e5e0 intomainNov 18, 2025
37 checks passed
@anikdhabalanikdhabal deleted the fix/routing-form-org-redirect branchNovember 18, 2025 09:12
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@cubic-dev-aicubic-dev-ai[bot]cubic-dev-ai[bot] left review comments

@hariombalharahariombalharahariombalhara approved these changes

@dhairyashiildhairyashiildhairyashiil approved these changes

Assignees

No one assigned

Labels

corearea: core, team members onlyready-for-e2esize/M

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

5 participants

@anikdhabal@hariombalhara@dhairyashiil@keithwillcode

[8]ページ先頭

©2009-2025 Movatter.jp