Skip to content

Enhance billing URL redirection with organization name #712

Merged
seb-kw merged 3 commits intomainfrom
fix-billing-url
May 6, 2026
Merged

Enhance billing URL redirection with organization name #712
seb-kw merged 3 commits intomainfrom
fix-billing-url

Conversation

@refoo0
Copy link
Copy Markdown
Member

@refoo0 refoo0 commented May 5, 2026

No description provided.

… query parameters

Signed-off-by: rafi <refaei.shikho@hotmail.com>
Copilot AI review requested due to automatic review settings May 5, 2026 14:24
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR updates the organization layout’s 402 (payment required) handling to redirect to the billing URL with additional query parameters intended to preserve organization context.

Changes:

  • Stores organizationSlug outside the try block so it can be used when handling errors.
  • Modifies the 402 redirect to append expired=1 and an organization-related query parameter.
  • Adds new imports related to session/role (currently unused).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/app/(loading-group)/[organizationSlug]/layout.tsx Outdated
Comment thread src/app/(loading-group)/[organizationSlug]/layout.tsx Outdated
Comment thread src/app/(loading-group)/[organizationSlug]/layout.tsx Outdated
Comment thread src/app/(loading-group)/[organizationSlug]/layout.tsx Outdated
refoo0 added 2 commits May 5, 2026 16:33
Signed-off-by: rafi <refaei.shikho@hotmail.com>
…ty and maintainability

Signed-off-by: rafi <refaei.shikho@hotmail.com>
@seb-kw seb-kw merged commit c0cba3f into main May 6, 2026
18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants