Skip to content
Grav 2.0 is officially stable. Read the announcement →

Community guidelines

Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.

Themes & Styling

Url('theme://') fails

Started by Nico Petri 7 years ago · 3 replies · 467 views
7 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')

7 years ago

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

7 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 Pedro M, 2 months ago
4 193 2 months ago
Themes & Styling · by Ian, 2 months ago
3 90 2 months ago
Themes & Styling · by Norbert, 2 years ago
11 449 3 months ago
Themes & Styling · by Lukáš Findeis, 3 months ago
0 44 3 months ago
Themes & Styling · by Sebadamus, 4 months ago
5 123 3 months ago