Answers.Body: <p>Maybe include the <code>.site</code> in your query <code>craft.entries.section('archive').site('YOUR_SITE_HANDLE').one()</code></p>
  
  <p>What is the section type of your "Archive" entry ? If its a single, maybe it will be more effective to write the handle down manually instead of doing a Query every time.</p>
  
  <p>Note: You can also use <code>.siteId()</code> instead of <code>.site()</code></p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-01-30T19:15:27.090Z
Answers.LastActivityDate: 2019-01-30T19:15:27.090Z
Answers.UserDisplayName: Maxime Lafrenière
Body: <p>When i use some kind of variable in url settings of section, it always uses default language version of this variable.</p>
  
  <p>For example, blog has two languages, english (default) and german. If i use these settings in URL settings for single post section, in german version:</p>
  
  <p><code>{{craft.entries.section('archive').one().uri}}/{slug}</code></p>
  
  <p>It returns english (default, not german) version o archive section uri.</p>
  
  <p>Is it expected behaviour?</p>
  
Tags: <localization><url><sections><language>
Title: Using language specific variables inside section URL settings
ThreadText: # Using language specific variables inside section URL settings
  
  (Asked by: username_0 on 2019-01-30)
  
  When i use some kind of variable in url settings of section, it always uses default language version of this variable.
  
  For example, blog has two languages, english (default) and german. If i use these settings in URL settings for single post section, in german version:
  
  `{{craft.entries.section('archive').one().uri}}/{slug}`
  
  It returns english (default, not german) version o archive section uri.
  
  Is it expected behaviour?
  
  **Tags:** localization, url, sections, language
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2019-01-30. Score: 2
  
  Maybe include the `.site` in your query `craft.entries.section('archive').site('YOUR_SITE_HANDLE').one()`
  
  What is the section type of your "Archive" entry ? If its a single, maybe it will be more effective to write the handle down manually instead of doing a Query every time.
  
  Note: You can also use `.siteId()` instead of `.site()`
  
  
  ---
  
  