[#73926] Add canonical meta tags to project & WP show pages#22813
Draft
[#73926] Add canonical meta tags to project & WP show pages#22813
Conversation
16b5fad to
55becdb
Compare
55becdb to
637d986
Compare
Member
|
@thykel worth adding the feature flag to this one? |
Contributor
Author
Actually, I don't think so. When it comes to crawler optimization, we want to have these exposed as early and as consistently as possible. There's already value in this even for the classic mode, as you can already have multiple URLs pointing to the same resource (slug-based vs. ID-based). |
Deploying openproject with ⚡ PullPreview
|
Base automatically changed from
feature/73756-adapt-routes-for-project-based-semantic-work-package-identifiers
to
dev
April 21, 2026 10:13
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Ticket
https://community.openproject.org/projects/stream-jira-exit/work_packages/73926/activity
Merge Pre-requirements
What are you trying to accomplish?
We have been implementing support for historical project URLs as well as semantic identifiers. A side effect of this is the fact that OP may now generate multiple links that lead to the exact same resource.
We do not want to confuse crawlers, so let's group those multiple versions together via a single canonical meta tag.
Screenshots
What approach did you choose and why?
The tag is present on top of every project/WP show page, no matter which URL was used to get to it or which tab is open in the UI.
The unified canonical format is
/projects/:numeric_db_id/work_packages/:numeric_db_id.You may consult the work package to see the reasoning behind this specific format.
Merge checklist