Answers.Body: <p>Without knowing if this a channel, structure or single and no provided code I can't give you a detailed answer, but I think you are looking for Craft's redirect tag.</p>
  
  <p><a href="https://craftcms.com/docs/templating/redirect" rel="nofollow">Redirect Tag</a></p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-09-06T14:05:28.023Z
Answers.Text: I want to redirect to inferior when the browser is unsupported, so i will redirect like a simple template there is no other way something like exit for the 404, right?
Answers.UserDisplayName: nickGR
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-09-06T14:11:23.770Z
Answers.Text: What you mean by "browser is unsupported"?
Answers.UserDisplayName: AbbeyDesign
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-09-07T08:20:25.117Z
Answers.Text: I mean that i have a list of browser versions that my project supports and if the users browser is not one of them i will redirect him to the error/inferior template.So i just want to know if there is something specific for doing that or i'll have to do it with a redirect tag.
Answers.UserDisplayName: nickGR
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-09-07T12:27:27.000Z
Answers.Text: Craft out of the box can determine if the browser is mobile or not, but I don't think it can determine the browser/version without a plugin. I might be wrong here, any other peeps here can comment. Once determined, you can use Craft's redirect tag in the link above.
Answers.UserDisplayName: AbbeyDesign
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-09-07T16:51:01.480Z
Answers.Text: Sounds like the OP already has a solution in place for figuring out if a certain browser is "supported" or not. If not, yes, there's the [`isMobileBrowser()`](https://craftcms.com/docs/templating/craft.request#isMobileBrowser) method. There's also the [`Detect`](https://github.com/mmikkel/Detect-Craft) plugin, if you need to get specific :)
Answers.UserDisplayName: Mats Mikkel Rummelhoff
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-09-06T11:59:24.770Z
Answers.LastActivityDate: 2016-09-06T11:59:24.770Z
Answers.UserDisplayName: AbbeyDesign
Answers.Body: <p>I don't really know what you mean by an "inferior template" but I assume you're talking about either a scaled down version of your site or just a custom error template. Tons of ways to skin this cat, here are some options:</p>
  
  <p>You can name your error/inferior template after <a href="https://stackoverflow.com/a/14511133/4663184">a semi-appropriate HTTP status</a>, and exit using that status (the below will load <code>/templates/403.html</code>, if it exists):</p>
  
  <pre><code>{% if browserNotSupported %}
      {% redirect 403 %}
  {% endif %}
  </code></pre>
  
  <p>You can redirect to a different URI:</p>
  
  <pre><code>{% if browserNotSupported %}
      {% redirect '/some/other/url' %}
  {% endif %}
  </code></pre>
  
  <p>You can also include a different template, e.g.</p>
  
  <pre><code>{% if browserNotSupported %}
      {% include '_inferior' %}
  {% else %}
      {# Your other template or code #}
  {% endif %}
  </code></pre>
  
  <p>...or you can use a ternary operation to <a href="http://twig.sensiolabs.org/doc/tags/extends.html" rel="nofollow noreferrer">extend</a> a different layout:</p>
  
  <pre><code>{% extends browserNotSupported ? '_inferior' : '_layout' %}
  {# Template code #}
  </code></pre>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-09-07T10:39:47.023Z
Answers.LastActivityDate: 2016-09-07T10:39:47.023Z
Answers.LastEditDate: 2017-05-23T12:38:53.957Z
Answers.UserDisplayName: Mats Mikkel Rummelhoff
Body: <p>So how do i redirect to error/inferior template.  I could add my template at the templates folder but thats not really nice.  Is there something like <code>{% exit 404 %}</code> but for the inferior page?</p>
  
Tags: <templating>
Title: Redirect to inferior
ThreadText: # Redirect to inferior
  
  (Asked by: username_0 on 2016-09-06)
  
  So how do i redirect to error/inferior template. I could add my template at the templates folder but thats not really nice. Is there something like `{% exit 404 %}` but for the inferior page?
  
  **Tags:** templating
  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_1 on 2016-09-06. Score: 4
  
  Without knowing if this a channel, structure or single and no provided code I can't give you a detailed answer, but I think you are looking for Craft's redirect tag.
  
  [Redirect Tag](https://craftcms.com/docs/templating/redirect)
  
  > **Comments:**
  > **username_0**: I want to redirect to inferior when the browser is unsupported, so i will redirect like a simple template there is no other way something like exit for the 404, right?  
  > **username_1**: What you mean by "browser is unsupported"?  
  > **username_0**: I mean that i have a list of browser versions that my project supports and if the users browser is not one of them i will redirect him to the error/inferior template.So i just want to know if there is something specific for doing that or i'll have to do it with a redirect tag.  
  > **username_1**: Craft out of the box can determine if the browser is mobile or not, but I don't think it can determine the browser/version without a plugin. I might be wrong here, any other peeps here can comment. Once determined, you can use Craft's redirect tag in the link above.  
  > **username_2**: Sounds like the OP already has a solution in place for figuring out if a certain browser is "supported" or not. If not, yes, there's the [`isMobileBrowser()`](https://craftcms.com/docs/templating/craft.request#isMobileBrowser) method. There's also the [`Detect`](https://github.com/mmikkel/Detect-Craft) plugin, if you need to get specific :)  
  
  ---
  
  ### Answer by username_2 on 2016-09-07. Score: 0
  
  I don't really know what you mean by an "inferior template" but I assume you're talking about either a scaled down version of your site or just a custom error template. Tons of ways to skin this cat, here are some options:
  
  You can name your error/inferior template after [a semi-appropriate HTTP status](https://stackoverflow.com/a/14511133/4663184), and exit using that status (the below will load `/templates/403.html`, if it exists):
  
  ```
  {% if browserNotSupported %}
      {% redirect 403 %}
  {% endif %}
  
  ```
  
  You can redirect to a different URI:
  
  ```
  {% if browserNotSupported %}
      {% redirect '/some/other/url' %}
  {% endif %}
  
  ```
  
  You can also include a different template, e.g.
  
  ```
  {% if browserNotSupported %}
      {% include '_inferior' %}
  {% else %}
      {# Your other template or code #}
  {% endif %}
  
  ```
  
  ...or you can use a ternary operation to [extend](http://twig.sensiolabs.org/doc/tags/extends.html) a different layout:
  
  ```
  {% extends browserNotSupported ? '_inferior' : '_layout' %}
  {# Template code #}
  
  ```
  
  
  ---
  
  