I am using symfony 1.0.6.
I have two URLs on my site.
http://newe4s.com/news/articles/view/033/job-news-and-information
and
http://newe4s.com/news/articles/view/033/job-news-and-information/graduate/Connections-help-graduates-get-jobs
Now all new articles use the same layout, and both the above links get the same data from the database. Google reports duplicate content as it receives multiple URLs for the same content. When I looked for a solution, I realized that using a "canonical" structure fixes this problem, which requires
<link rel="canonical" href="http://newe4s.com/news/articles/view/033/job-news-and-information />
to be added to the chapter section of the page
http://newe4s.com/news/articles/view/033/job-news-and-information/graduate/Connections-help-graduates-get-jobs
But the problem is that both use the same layout and based on the article ID (033 in the above example), the data is extracted and displayed. I cannot change or hardcode the canonical href.
action.class ?