Library path wrong for subsites

Created on 27 May 2022, almost 3 years ago
Updated 10 February 2025, 2 months ago

For subsites, the path to the library doesn't take into account the base path.

eg.:

My site is located at http://myhost.com/mysubsite/web

The library path in the UI is '/libraries/lazysizes'

So the library should be located at http://myhost.com/mysubsite/web/libraries/lazysizes/lazysizes.min.js

Instead, I get a message that http://myhost.com/libraries/lazysizes/lazysizes.min.js is not found.

I could of course set the path manually, but then the path to the library would be different on local vs live versions of the same site. That would be bad practice.

Solution: include the base path in the settings

🐛 Bug report
Status

Active

Version

3.0

Component

Code

Created by

🇧🇪Belgium GlarDup

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024