This module improves SEO by changing the format of comment permalinks from `/comment/[comment-id]#[comment-id]` to `/node/[node-id]#[comment-id]` or `/[node-alias]#[comment-id]`. It then redirects the old URLs to the new format, preventing duplicate content issues for nodes with many comments.
The default Drupal comment permalink has the following format, /comment/[comment-id]#[comment-id], if a node has 10 comments, each page with the URL /comment/[comment-id] loads identical content to the node itself.
10 comments is just fine but how about 1000 comments? 1000 duplicate contents is very bad for SEO and our website may be the target of Google's sandbox.
So this module rewrite the comment URL format to /node/[node-id]#[comment-id] or /[node-alias]#[comment-id] and than redirect the old URL format to new one.
Note: this module only rewrite the comment permalink generated by core comment module, comments generated, let say by Views module not changed but redirected to proper URLs.
Ask your assistant about Comment Fragment
Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works
Depends on
Dependencies of the latest stable release
No dependencies recorded for this project.
Required by
Tracked projects that depend on this one
No tracked projects depend on this one yet.
Activity
Releases
| Version | Type | Core | PHP | Release date | |
|---|---|---|---|---|---|
| 1.0.0-rc2 | Pre-release | 9–10 | Jun 20, 2024 |