refactoring (gulp and libraries) + some fixing
This commit is contained in:
@@ -22,13 +22,14 @@ function edlp_ajax_page_attachments(array &$attachments) {
|
||||
$current_path = \Drupal::service('path.current')->getPath();
|
||||
$is_front = \Drupal::service('path.matcher')->isFrontPage();
|
||||
|
||||
// do not redirect if note node, term, or custom routing
|
||||
// do not redirect if not node, term, or custom routing
|
||||
// FIXME: check with routes instead of path as path can change !!!
|
||||
if(preg_match('/^\/?node\/\d+/', $current_path)
|
||||
|| preg_match('/^\/?taxonomy\/term\/\d+/', $current_path)
|
||||
|| preg_match('/^\/?productions/', $current_path)
|
||||
|| preg_match('/^\/?agenda/', $current_path)
|
||||
|| preg_match('/^\/?studio/', $current_path)){
|
||||
// TODO: search url
|
||||
|| preg_match('/^\/?studio/', $current_path)
|
||||
|| preg_match('/^\/?search/', $current_path)){
|
||||
$redirect = true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user