Answers.Body: <p>Does this work?</p>
  
  <pre><code>{% redirect block.redirect.url %}
  </code></pre>
  
  <p>I don't know Linkit but this would be the correct twig syntax at least. For normal entry fields you would do</p>
  
  <pre><code>{% redirect block.redirect.one.url %}
  </code></pre>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2018-03-09T22:15:21.173Z
Answers.LastActivityDate: 2018-03-09T22:15:21.173Z
Answers.UserDisplayName: Robin Schambach
Body: <p>I have a fruit Link it field that I use to allow users to choose an entry and have that page redirect to the chosen entry.  Not sure of the syntax to use to pass that link it field to the redirect field.</p>
  
  <p>This does not work:</p>
  
  <pre><code>{% redirect "{{ block.redirect.url }}"  %}
  </code></pre>
  
  <p>Thanks</p>
  
Tags: <templating><redirect>
Title: How to pass variable to Redirect tag
ThreadText: # How to pass variable to Redirect tag
  
  (Asked by: username_0 on 2018-03-09)
  
  I have a fruit Link it field that I use to allow users to choose an entry and have that page redirect to the chosen entry. Not sure of the syntax to use to pass that link it field to the redirect field.
  
  This does not work:
  
  ```
  {% redirect "{{ block.redirect.url }}"  %}
  
  ```
  
  Thanks
  
  **Tags:** templating, redirect
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2018-03-09. Score: 2 | Accepted answer
  
  Does this work?
  
  ```
  {% redirect block.redirect.url %}
  
  ```
  
  I don't know Linkit but this would be the correct twig syntax at least. For normal entry fields you would do
  
  ```
  {% redirect block.redirect.one.url %}
  
  ```
  
  
  ---
  
  