New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow users to add <meta rel="canonical"> tags to site pages #5818
Conversation
This looks good to me, @aembler what do you think? |
@mlocati resolve conflicts and I think this is good to merge. |
# Conflicts: # concrete/config/site.php
Done |
@mlocati Thank you for this feature. We're facing a different issue. So, the canonical URL also get the same value. Our client wants to remove this get parameters from the canonical URL. I know you already have added an option |
The only solution I see is to add |
Thank you. |
Thank you @mlocati , but if so, we should add some get parameters from popular search engines and social networking sites into the default config file, didn't it? |
@hissy what about creating a file located at <?php
return [
'sites' => [
'default' => [
'seo' => [
'canonical_tag' => [
'excluded_querystring_parameters' => [
'cID',
'ccm_token',
'utm_content',
'utm_medium',
'utm_source',
'utm_campaign',
],
],
],
],
],
]; |
@mlocati Yeah, I can do that because I know about concrete5 config system well, but most of the beginners are not. |
I agree. |
We should ignore |
@mlocati Any updates on this issue? Should I create a new open issue about this? |
I think it's a good idea: comments in merged pull requests aren't a great place to write about new issues, since they are somehow "hidden" |
Currently, a single page may have multiple URLs:
www.example.com/test
www.example.com/index.php/test
www.example.com/?cID=123
www.example.com/index.php?cID=123
That's not good for search engines: they see duplicated contents at different URLs.
Let's tell them that all these URLs are for the same page (
www.example.com/test
)