iachat/app/javascript
Shivam Mishra f916fb2924
fix: handle empty customDomain when checking for isInternalLink (#11609)
This PR improves the portal's internal link detection logic to be more
robust when handling empty or undefined configuration values.
Previously, the code could fail when `customDomain` was empty, causing
external links to incorrectly behave as internal links. The fix
introduces a new `isSameOrigin` helper function that safely compares
URLs using proper URL parsing and origin comparison, gracefully handling
edge cases like missing domains, relative paths, and malformed URLs.
This ensures external links consistently open in new tabs regardless of
portal configuration completeness.
2025-05-28 17:56:32 +05:30
..
dashboard feat: allow searching articles in omnisearch (#11558) 2025-05-28 13:50:50 +05:30
design-system feat: Add histoire for component playground (#10256) 2024-10-09 22:10:53 -07:00
entrypoints feat: handle rails turbo morphing (#11422) 2025-05-07 10:22:08 +05:30
portal fix: handle empty customDomain when checking for isInternalLink (#11609) 2025-05-28 17:56:32 +05:30
sdk feat: handle rails turbo morphing (#11422) 2025-05-07 10:22:08 +05:30
shared feat: Prevent saving preferences and status when impersonating (#11164) 2025-05-20 17:34:30 -07:00
superadmin_pages chore: fix circleci on vite build (#10214) 2024-10-07 15:27:41 +05:30
survey feat: Improve CSAT responses (#11485) 2025-05-16 14:18:52 +05:30
v3 feat: Prevent saving preferences and status when impersonating (#11164) 2025-05-20 17:34:30 -07:00
widget feat: Improve CSAT responses (#11485) 2025-05-16 14:18:52 +05:30
histoire.setup.ts feat: Add compose conversation components (#10457) 2024-12-05 16:31:47 -08:00