Skip to content
Snippets Groups Projects
Commit d60b4ff7 authored by catch's avatar catch
Browse files

Issue #3367556 by vensires, danchadwick, detroz, g089h515r806, groendijk: SDC...

Issue #3367556 by vensires, danchadwick, detroz, g089h515r806, groendijk: SDC components CSS & JS generated wrong url in windows / XAMPP

(cherry picked from commit 74c4c0ab)
parent 34e9c0c2
No related branches found
No related tags found
No related merge requests found
Pipeline #403708 passed with warnings
Pipeline: drupal

#403730

    Pipeline: drupal

    #403725

      Pipeline: drupal

      #403716

        +1
        ...@@ -469,6 +469,8 @@ private function makePathRelativeToLibraryRoot(string $path): string { ...@@ -469,6 +469,8 @@ private function makePathRelativeToLibraryRoot(string $path): string {
        $path_from_root = str_starts_with($path, $this->appRoot) $path_from_root = str_starts_with($path, $this->appRoot)
        ? substr($path, strlen($this->appRoot) + 1) ? substr($path, strlen($this->appRoot) + 1)
        : $path; : $path;
        // Make sure this works seamlessly in every OS.
        $path_from_root = str_replace(DIRECTORY_SEPARATOR, '/', $path_from_root);
        // The library owner is in <root>/core, so we need to go one level up to // The library owner is in <root>/core, so we need to go one level up to
        // find the app root. // find the app root.
        return '../' . $path_from_root; return '../' . $path_from_root;
        ......
        0% Loading or .
        You are about to add 0 people to the discussion. Proceed with caution.
        Finish editing this message first!
        Please register or to comment