From 7d646bf11cd94beb70d8fea0a5d0ce8a53d2f0ad Mon Sep 17 00:00:00 2001 From: akash-codemonk <67054171+akash-codemonk@users.noreply.github.com> Date: Thu, 21 Apr 2022 19:28:26 +0530 Subject: [PATCH] chore: redirect to home page at the end of onboarding (#12961) --- .../src/pages/Editor/GuidedTour/TourCompletionMessage.tsx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/app/client/src/pages/Editor/GuidedTour/TourCompletionMessage.tsx b/app/client/src/pages/Editor/GuidedTour/TourCompletionMessage.tsx index c0a3c58c06..34c6eaba87 100644 --- a/app/client/src/pages/Editor/GuidedTour/TourCompletionMessage.tsx +++ b/app/client/src/pages/Editor/GuidedTour/TourCompletionMessage.tsx @@ -22,7 +22,8 @@ import { } from "@appsmith/constants/messages"; import { getTypographyByKey } from "constants/DefaultTheme"; import { Colors } from "constants/Colors"; -import { builderURL } from "RouteBuilder"; +import history from "utils/history"; +import { APPLICATIONS_URL } from "constants/routes"; const Container = styled.div` background-color: ${(props) => props.theme.colors.guidedTour.card.background}; @@ -104,6 +105,7 @@ function CongratulationsView() { setShow(false); dispatch(showPostCompletionMessage(false)); setPostWelcomeTourState(false); + history.push(APPLICATIONS_URL); }; if (!show) return null; @@ -155,11 +157,10 @@ function CongratulationsView() {