Skip to content

Commit

Permalink
Add additional URLs to locked domains
Browse files Browse the repository at this point in the history
Add additional URLs to locked domains
  • Loading branch information
jphamslac committed Dec 12, 2023
1 parent 34e555c commit 67f1b97
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions source/03-components/external-link/external-link.es6.js
Expand Up @@ -9,15 +9,22 @@ Drupal.behaviors.externalLinks = {
'userportal.slac.stanford.edu',
'www-internal.slac.stanford.edu',
'internal.slac.stanford.edu',
'sallie.stanford.edu',
'int.slac.stanford.edu',
'www-bis1.slac.stanford.edu',
'slac.sharepoint.com',
'slacspace.slac.stanford.edu',
'slac.wta-us8.wfs.cloud,
'slacprod.servicenowservices.com',
'slac.slack.com',
'erp-fsprd.erp.slac.stanford.edu',
'login.adaptiveinsights.com',
'www-public.slac.stanford.edu/phonebook',
];
function linkIsExternal(linkElement) {
let isExternal = true;
if (
linkElement.host === 'www6.slac.stanford.edu' ||
linkElement.host.endsWith('.slac.stanford.edu') ||
linkElement.host === 'sallie.stanford.edu' ||
linkElement.host === window.location.host
) {
isExternal = false;
Expand Down

0 comments on commit 67f1b97

Please sign in to comment.