Rename 'subscription' path to 'return' in pricing components
The path referred to by "subscription" in the pricing table and pages has been updated to "return". This will redirect users back to the home page instead of the previously configured personalAccountBilling page after signing up or selecting a plan.
This commit is contained in:
@@ -277,7 +277,7 @@ function Home() {
|
||||
config={billingConfig}
|
||||
paths={{
|
||||
signUp: pathsConfig.auth.signUp,
|
||||
subscription: pathsConfig.app.personalAccountBilling,
|
||||
return: pathsConfig.app.home,
|
||||
}}
|
||||
/>
|
||||
</div>
|
||||
|
||||
@@ -16,7 +16,7 @@ export const generateMetadata = async () => {
|
||||
|
||||
const paths = {
|
||||
signUp: pathsConfig.auth.signUp,
|
||||
subscription: pathsConfig.app.personalAccountBilling,
|
||||
return: pathsConfig.app.home,
|
||||
};
|
||||
|
||||
async function PricingPage() {
|
||||
|
||||
@@ -26,7 +26,7 @@ import { LineItemDetails } from './line-item-details';
|
||||
|
||||
interface Paths {
|
||||
signUp: string;
|
||||
subscription: string;
|
||||
return: string;
|
||||
}
|
||||
|
||||
export function PricingTable({
|
||||
@@ -431,7 +431,7 @@ function DefaultCheckoutButton(
|
||||
const signUpPath = props.paths.signUp;
|
||||
|
||||
const searchParams = new URLSearchParams({
|
||||
next: props.paths.subscription,
|
||||
next: props.paths.return,
|
||||
plan: props.plan.id,
|
||||
redirectToCheckout: props.redirectToCheckout ? 'true' : 'false',
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user