Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SG-2145 - training site banner #1708

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions web/modules/custom/sfgov_utilities/sfgov_utilities.module
Original file line number Diff line number Diff line change
Expand Up @@ -155,9 +155,8 @@ function sfgov_utilities_entity_type_alter(array &$entity_types) {
* Implements hook_page_attachments
*/
function sfgov_utilities_page_attachments(array &$page) {
$host = \Drupal::request()->getSchemeAndHttpHost();
// Sandbox alert
if ($host == 'https://sfgov-staging.sfgov.dev.sf.gov/' || $host == 'https://training.api.sf.gov/') {
$host = \Drupal::request()->getHttpHost();
if ($host !== "sf.gov" || $host !== "www.sf.gov") {
$page['#attached']['library'][] = 'sfgov_utilities/sandbox';

/* sandbox user login */
Expand Down
Loading