Darkmode library path is incorrect with site in a sub-directory

Created on 2 January 2024, 6 months ago
Updated 27 January 2024, 5 months ago

Problem/Motivation

This only works for sites that do not run within a subdirectory. The library path is incorrect.

For example: www.example.com/home/

the path to find the library is:
www.example.com/libraries/darkmode-js/lib/darkmode-js.min.js

when it should be:
www.example.com/home/libraries/darkmode-js/lib/darkmode-js.min.js

I tried removing the leading "/" but it doesn't work when changing to other paths.

🐛 Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

🇺🇸United States sleewok

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

Merge Requests

Comments & Activities

Production build 0.69.0 2024