title: How to add canonical tag the pages that are derived from same link?
body: <p>I am using symfony 1.0.6.</p>
  
  <p>In my site I have two URLs.</p>
  
  <pre><code>http://newe4s.com/news/articles/view/033/job-news-and-information
  </code></pre>
  
  <p>and </p>
  
  <pre><code>http://newe4s.com/news/articles/view/033/job-news-and-information/graduate/Connections-help-graduates-get-jobs
  </code></pre>
  
  <p>Now, all the new articles are using same layout and both above links get same data from database.
  Google is reporting duplication of contents since it is getting multiple URLs for same content.
  When I searched for a solution, I got that using "canonical" structure fixes this issue which require</p>
  
  <pre><code>&lt;link rel="canonical" href="http://newe4s.com/news/articles/view/033/job-news-and-information /&gt;
  </code></pre>
  
  <p>to be added in head section of page </p>
  
  <pre><code>http://newe4s.com/news/articles/view/033/job-news-and-information/graduate/Connections-help-graduates-get-jobs
  </code></pre>
  
  <p>But problem here is, both are using same layout and based on article id (033 in above example), data is fetched and displayed.
  I cannot change or hard-code canonical href. </p>
  
  <p>Are there any ways of adding link tag manually in action.class or in template file ?</p>