Commit 95b505d3 authored by Daniel Rodriguez's avatar Daniel Rodriguez
Browse files

Issue #3303675: Adds support for URL path prefix

parent a97b1c24
Loading
Loading
Loading
Loading
+16 −0
Original line number Diff line number Diff line
@@ -97,6 +97,22 @@ function fluidproject_ui_options_page_build(&$page) {
    return;
  }

  // Handles the wildcard (*) at the end of the url.
  foreach ($url_blacklist as $url) {
    if (mb_strpos($url, '/*') === FALSE) {
      continue;
    }

    $url = str_replace('/*', '', $url);
    if (mb_strpos($current_path, $url) === 0) {
      return;
    }

    if (mb_strpos($current_path_alias, $url) === 0) {
      return;
    }
  }

  if ($admin_display){
    //display the widget on all pages.
    libraries_load('fluid');