Are you enjoying the extensions? Did you like the support? Help others decide.

Leave a review

file Wrong Local Paths

More
1 year 9 months ago #5836 by bobbobbob
Wrong Local Paths was created by bobbobbob
Hi there,

[my problem]
My website does not include files that I entered under plugin's tab "Bootstrap" > "Bootstrap" > "Local Paths", e.g.
-- scripts --
/media/bootstrap/popper.2.11.6.min.js
/media/bootstrap/bootstrap.5.2.3.min.js
-- styles--
/media/bootstrap/bootstrap.5.2.3.min.css

[problem]
the source code shows the paths with prepended (leading) extra slash, so e.g.
/media/bootstrap/bootstrap.5.2.3.min.css
becomes
//media/bootstrap/bootstrap.5.2.3.min.css

[details]
Relative paths are ok, and files are present; When I enter the url, I can see them.
It (kind of) did work locally:
/media/[...].css
became
/localpath//media/[...].css

[setup]
Joomla! 4.2.6
Php 8.1.x
jquery easy plugin 5.1.0
 

Please Log in or Create an account to join the conversation.

More
1 year 9 months ago #5837 by syw
Replied by syw on topic Wrong Local Paths
Hello,

have you tried entering
media/bootstrap/bootstrap.5.2.3.min.css
instead of
/media/bootstrap/bootstrap.5.2.3.min.css ?

Olivier.

Please Log in or Create an account to join the conversation.

More
1 year 9 months ago #5838 by bobbobbob
Replied by bobbobbob on topic Wrong Local Paths
Yes, then the file is not included at all:

- media/[...] => path is not included
- /media/[...] => path gets an extra leading slash (interpreted as http://media[...])
- ./media/[...] => path is not included
- .media/[...] => path is not included
- myurl.com/media/[...] => path is not included
- //myurl.com/media/[...] => path is not included
- /myurl.com/media/[...] => path is not included

Please Log in or Create an account to join the conversation.

More
1 year 9 months ago #5839 by syw
Replied by syw on topic Wrong Local Paths
Thank you,

I will double check these cases.
In the meantime, add the full URLs as sampled in the documentation.

Joomla now uses an asset manager and paths are not included if they are not properly built or don't exist. For instance,
/myurl.com/media/
will never get included.

Paths like
.media/
should not work.

Paths like
/media/...
or
media/...
should work, I agree.

Olivier.

Please Log in or Create an account to join the conversation.

More
1 year 9 months ago #5847 by bobbobbob
Replied by bobbobbob on topic Wrong Local Paths
>> I will double check these cases.
Thanks, Olivier!

>> In the meantime, add the full URLs as sampled in the documentation.
Unfortunately I think, I am already trying that (please see above and the following):
I also tried in Local Paths (scripts)
stage.mydomain.de/media/bootstrap/popper.2.11.6.min.js
stage.mydomain.de/media/bootstrap/bootstrap.5.2.3.min.js
in Local Paths (styles)
stage.mydomain.de/media/bootstrap/bootstrap.5.2.3.min.css

The three are not included.
I replaced the real domain with "mydomain" only here.
The paths are correct, I can call the directly from my browser.

Please note the subdomain other than "www" and the missing ssl (due to client's staging env.). Could that be it?

I'm willing to give you access to my stage's backend.

Please Log in or Create an account to join the conversation.

More
1 year 9 months ago #5848 by syw
Replied by syw on topic Wrong Local Paths
Send an email to [email protected] with credentials to access the site so I can check your setup. Thank you!

Olivier.

Please Log in or Create an account to join the conversation.