iachat/app/javascript/portal
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
..
api feat: Add search functionality for public portal (#5683) 2022-10-19 17:09:32 -07:00
components chore: Make the table of contents in help center sticky (#11448) 2025-05-09 08:44:44 +05:30
specs fix: handle empty customDomain when checking for isInternalLink (#11609) 2025-05-28 17:56:32 +05:30
application.scss feat: Add RTL Support to Widget (#11022) 2025-03-21 09:39:03 -07:00
portalHelpers.js fix: handle empty customDomain when checking for isInternalLink (#11609) 2025-05-28 17:56:32 +05:30
portalThemeHelper.js feat: Update public portal colors with new design (#8230) 2023-11-23 08:16:52 +05:30