In multilingual sites the global variable {{ siteUrl }} should not point to the URL with "/de/" if it is included in the templates head section for pointing to a global js-file or css-file (eg. href="{{ siteUrl }}css/normalize.css" results for the German language versions in https:///example.com/de/cc/normalize.css) which does not exist. Is there a specific global variable which points to the default url regardless of the localization)?

The site settings are as shown in below screenshoot:

enter image description here


From 3.6.0, siteUrl has been deprecated, instead, in your instance, you could use {{ alias('@web') }}.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.