Answers.Body: <p>If I understand your question correctly you might be better off using <a href="https://github.com/nystudio107/seomatic/wiki/04.-SEO-Template-Meta" rel="nofollow">SEOmatic's Template Meta feature</a>.</p>
  
  <p>Using the Template Meta you're be able to set the meta info on a per template basis. So in this case you'd create a one to use for your <code>calendar.html</code> template.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-09-01T18:34:57.167Z
Answers.LastActivityDate: 2016-09-01T18:34:57.167Z
Answers.UserDisplayName: zackspear
Body: <p>I've got a single set up to point to /calendar on my site. the single has only one field, SEOmatic so I can add meta title, description etc.. the rest of he page is loaded with content from the photoblog channel.</p>
  
  <p>The issue is that I've got things organized by months and if there are no month segments in the url I redirect to the current year and month so that for example today the site would redirect to /calendar/2016/08 and when it does this the meta tags are getting pulled from the homepage single and I don't know why.</p>
  
  <p>I also have a template route set like this <a href="https://i.sstatic.net/XSEZr.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/XSEZr.png" alt="enter image description here"></a></p>
  
  <p>If I remove the redirect code for the year/month the meta tags come through correctly, but if it's there no luck.</p>
  
  <p>How can I fix this.</p>
  
  <p>simplified template code here:</p>
  
  <pre><code>{% if craft.request.segment(2) == "" %}
    {% redirect "/calendar/" ~ now.year ~ "/" ~ now|date("m") %}
  {% endif %}
  
  
  {#
    // take month digit and convert to date format so we can output
    // the full month name below next to the year
    // if this isn't done will only output 08 or 09 for august or september etc...
  #}
  {% set viewMonth = '00-' ~ month ~ '-01' %}
  
  {% set entryAfterDate = year ~ '-' ~ month %}
  {% set entryBeforeDate = year ~ '-' ~ (month + 1) %}
  
            {% set entries = craft.entries.section('photoblog').limit(null).after(entryAfterDate).before(entryBeforeDate) %}
  
            {% for entry in entries | reverse %}
  
              more code here
  
            {% endfor %}
  
  {% endblock %}
  </code></pre>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2016-09-01T19:15:44.350Z
Comments.Text: Does that route work if you remove the `.html`?
Comments.UserDisplayName: Lindsey D
Tags: <routes><redirect><singles>
Title: Single not loading correctly with additional segments
ThreadText: # Single not loading correctly with additional segments
  
  (Asked by: username_0 on 2016-09-01)
  
  I've got a single set up to point to /calendar on my site. the single has only one field, SEOmatic so I can add meta title, description etc.. the rest of he page is loaded with content from the photoblog channel.
  
  The issue is that I've got things organized by months and if there are no month segments in the url I redirect to the current year and month so that for example today the site would redirect to /calendar/2016/08 and when it does this the meta tags are getting pulled from the homepage single and I don't know why.
  
  I also have a template route set like this [![enter image description here](https://i.sstatic.net/XSEZr.png)](https://i.sstatic.net/XSEZr.png)
  
  If I remove the redirect code for the year/month the meta tags come through correctly, but if it's there no luck.
  
  How can I fix this.
  
  simplified template code here:
  
  ```
  {% if craft.request.segment(2) == "" %}
    {% redirect "/calendar/" ~ now.year ~ "/" ~ now|date("m") %}
  {% endif %}
  
  {#
    // take month digit and convert to date format so we can output
    // the full month name below next to the year
    // if this isn't done will only output 08 or 09 for august or september etc...
  #}
  {% set viewMonth = '00-' ~ month ~ '-01' %}
  
  {% set entryAfterDate = year ~ '-' ~ month %}
  {% set entryBeforeDate = year ~ '-' ~ (month + 1) %}
  
            {% set entries = craft.entries.section('photoblog').limit(null).after(entryAfterDate).before(entryBeforeDate) %}
  
            {% for entry in entries | reverse %}
  
              more code here
  
            {% endfor %}
  
  {% endblock %}
  
  ```
  
  **Tags:** routes, redirect, singles
  
  > **Comments:**
  > **username_1**: Does that route work if you remove the `.html`?  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_2 on 2016-09-01. Score: 2 | Accepted answer
  
  If I understand your question correctly you might be better off using [SEOmatic's Template Meta feature](https://github.com/nystudio107/seomatic/wiki/04.-SEO-Template-Meta).
  
  Using the Template Meta you're be able to set the meta info on a per template basis. So in this case you'd create a one to use for your `calendar.html` template.
  
  
  ---
  
  