Skip to content

feat: Add support for Buyer Portal in Catalyst #2404

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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 9 commits into
base: canary
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
### ℹ️ This is the new integration between catalyst and buyer-portal, if you are looking for the old version check: [integrations/b2b-buyer-portal-before-vibes](https://github.com/bigcommerce/catalyst/tree/integrations/b2b-buyer-portal-before-vibes)

<a href="https://catalyst.dev" target="_blank" rel="noopener norerrer">
<img src="https://storage.googleapis.com/bigcommerce-developers/images/catalyst_readme_banner.png" alt="Catalyst for Composable Commerce Image Banner" title="Catalyst">
</a>
Expand Down
2 changes: 1 addition & 1 deletion core/app/[locale]/(default)/(auth)/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export default async function Layout({ children, params }: Props) {
const { locale } = await params;

if (loggedIn) {
redirect({ href: '/account/orders', locale });
redirect({ href: '/?section=orders', locale });
}

return children;
Expand Down
2 changes: 1 addition & 1 deletion core/app/[locale]/(default)/(auth)/login/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export async function generateMetadata({ params }: Props): Promise<Metadata> {

export default async function Login({ params, searchParams }: Props) {
const { locale } = await params;
const { redirectTo = '/account/orders' } = await searchParams;
const { redirectTo = '/?section=orders' } = await searchParams;

setRequestLocale(locale);

Expand Down
Loading