Answers.Body: <p>From 3.6.0, <code>siteUrl</code> <a href="https://github.com/craftcms/cms/blob/main/src/config/GeneralConfig.php#L1478-L1481" rel="nofollow noreferrer">has been deprecated</a>, instead, in your instance, you could use <code>{{ alias('@web') }}</code>.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-08-25T06:14:44.587Z
Answers.LastActivityDate: 2021-08-25T06:14:44.587Z
Answers.UserDisplayName: Oli
Body: <p>In multilingual sites the global variable {{ siteUrl }} should not point to the URL with &quot;/de/&quot; if it is included in the templates head section for pointing to a global js-file or css-file (eg. href=&quot;{{ siteUrl }}css/normalize.css&quot; 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)?</p>
  <p>The site settings are as shown in below screenshoot:</p>
  <p><a href="https://i.sstatic.net/NkBOW.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/NkBOW.png" alt="enter image description here" /></a></p>
  
Tags: <craft3><localization><variable><siteurl>
Title: global variable {{ siteUrl }} in multilingual sites
ThreadText: # global variable {{ siteUrl }} in multilingual sites
  
  (Asked by: username_0 on 2021-08-24)
  
  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](https://i.sstatic.net/NkBOW.png)](https://i.sstatic.net/NkBOW.png)
  
  **Tags:** craft3, localization, variable, siteurl
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2021-08-25. Score: 1 | Accepted answer
  
  From 3.6.0, `siteUrl` [has been deprecated](https://github.com/craftcms/cms/blob/main/src/config/GeneralConfig.php#L1478-L1481), instead, in your instance, you could use `{{ alias('@web') }}`.
  
  
  ---
  
  