Rename /success to /manage and fix link in calendar event (#5719)
* fix need to make changes link in calendar event * change /success link to /manage * delete success.tsx file and use next.js rewrites * fix e2e tests * remove not needed waitForNavigation * fix e2e tests * rename manage?uid to booking/uid * fix rewrite * remove not needed export * fix rescheduling e2e tests * Minor fixes/cleannup * Update BookingPage.tsx * Moves cancel page to rewrite Co-authored-by: CarinaWolli <[email protected]> Co-authored-by: Peer Richelsen <[email protected]> Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com> Co-authored-by: zomars <[email protected]>
This commit is contained in:
15 files changed
+46
-62
No files matched your search
@@ -81,9 +81,7 @@ export default function PaymentComponent(props: Props) {
|
||||
error: new Error(`Payment failed: ${payload.error.message}`),
|
||||
});
|
||||
} else {
|
||||
const params: { [k: string]: any } = {
|
||||
uid: props.bookingUid,
|
||||
};
|
||||
const params: { [k: string]: any } = {};
|
||||
|
||||
if (props.location) {
|
||||
if (props.location.includes("integration")) {
|
||||
@@ -94,7 +92,7 @@ export default function PaymentComponent(props: Props) {
|
||||
}
|
||||
|
||||
const query = stringify(params);
|
||||
const successUrl = `/success?${query}`;
|
||||
const successUrl = `/booking/${props.bookingUid}?${query}`;
|
||||
|
||||
await router.push(successUrl);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user