From 9930224212cc393b1d4ee854f9a507e10958d90e Mon Sep 17 00:00:00 2001 From: Ankita Kinger Date: Mon, 28 Jul 2025 16:57:34 +0530 Subject: [PATCH] fix: Updating the check for matching app libraries path (#41139) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## Description Updating the check for matching app libraries path to fix the redirection to JS Libraries section when page has a custom path. Fixes [#41138](https://github.com/appsmithorg/appsmith/issues/41138) ## Automation /ok-to-test tags="@tag.Sanity" ### :mag: Cypress test results > [!IMPORTANT] > 🟣 🟣 🟣 Your tests are running. > Tests running at: > Commit: 55233a42b73de66a5def0e1287ca2513d632e60a > Workflow: `PR Automation test suite` > Tags: `@tag.Sanity` > Spec: `` >
Mon, 28 Jul 2025 10:40:58 UTC ## Communication Should the DevRel and Marketing teams inform users about this change? - [ ] Yes - [ ] No ## Summary by CodeRabbit * **Bug Fixes** * Improved path recognition for application libraries and packages, supporting both standard and custom builder paths. --- app/client/src/ce/constants/routes/appRoutes.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/client/src/ce/constants/routes/appRoutes.ts b/app/client/src/ce/constants/routes/appRoutes.ts index 341fdb96a1..0000fc74f1 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);