diff --git a/app/client/src/ce/constants/routes/appRoutes.ts b/app/client/src/ce/constants/routes/appRoutes.ts index 341fdb96a190..0000fc74f139 100644 --- a/app/client/src/ce/constants/routes/appRoutes.ts +++ b/app/client/src/ce/constants/routes/appRoutes.ts @@ -124,10 +124,12 @@ export const matchViewerForkPath = (pathName: string) => match(`${VIEWER_PATH_DEPRECATED}${VIEWER_FORK_PATH}`)(pathName); export const matchAppLibrariesPath = (pathName: string) => - match(`${BUILDER_PATH}${APP_LIBRARIES_EDITOR_PATH}`)(pathName); + match(`${BUILDER_PATH}${APP_LIBRARIES_EDITOR_PATH}`)(pathName) || + match(`${BUILDER_CUSTOM_PATH}${APP_LIBRARIES_EDITOR_PATH}`)(pathName); export const matchAppPackagesPath = (pathName: string) => - match(`${BUILDER_PATH}${APP_PACKAGES_EDITOR_PATH}`)(pathName); + match(`${BUILDER_PATH}${APP_PACKAGES_EDITOR_PATH}`)(pathName) || + match(`${BUILDER_CUSTOM_PATH}${APP_PACKAGES_EDITOR_PATH}`)(pathName); export const addBranchParam = (branch: string) => { const url = new URL(window.location.href);