Skip to content
● Meet Grav Guard: keep every Grav site you run secure and up to date, all from one place. Free for up to 3 sites. Read more →

Url('theme://') fails

Started by Nico Petri 8 years ago · 3 replies · 851 views
8 years ago

Hello there,

i installed grav in an subdirectory like this:
xyz.de/sub/
(I used the ReWrite rule in the .haccess as usal and everthing works fine).

Since i ve updated to V1.6.6 this twig command delivers only the '/sub/' directory:

url('theme://assets/img/logo-wide.svg') -> delvivers '/sub/'

I found out that '-' or '_' in the file name causes the failure.

So i use this workaround now:
url('theme://assets/img/logo.svg')

8 years ago

Could be caused by the regex in your htaccess rewrite rule. Can you post the relevant portion of your rewrite rule here?

8 years ago

For the file without - or _, what is the path that the browser uses to access it?

Suggested topics

Topic Participants Replies Views Activity
Themes & Styling · by themetman, 6 days ago
1 104 3 days ago
Themes & Styling · by AH, 3 weeks ago
1 224 3 days ago
Themes & Styling · by Bruno, 4 years ago
6 1388 3 days ago
Themes & Styling · by TomW, 3 weeks ago
2 227 5 days ago
Themes & Styling · by FrViPofm, 2 months ago
4 687 2 months ago