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:
authored and GitHub committed 2022-11-29 20:27:29 +00:00
1 parent 0c746ec10f
commit dff49ec28a
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);
}