-
Type:
Bug
-
Status: Closed
-
Resolution: Fixed
-
Affects Version/s: 7.0.X, 7.1.X, Master
-
Fix Version/s: 7.0.0 DXP FP70, 7.0.X, 7.1.10 DXP FP7, 7.1.10.2 SP2, 7.1.3 CE GA4, 7.1.X, Master
-
Component/s: SEO Tools > OpenGraph tags
-
Branch Version/s:7.1.x, 7.0.x
-
Backported to Branch:Committed
-
Story Points:0.25
-
Fix Priority:3
-
Git Pull Request:
Reproduction steps:
1) Use latest Master and start the server, login as an Admin
2) Create a new page e.g. /page2 in default site and place an Asset Publisher on it
3) Configure the Asset Publisher:
- Asset Selection: Dynamic
- Display Settings > Asset Link Behavior > View in Context
- Display Settings > Asset Link Behavior > Set as the Default Asset Publisher for This Page: Yes
4) Create a new Web Content with title "My content" and set its Display Page to be /page2
5) Navigate to /page2 and click on the web content: the URL will turn to be: http://localhost:8080/web/guest/-/my-content?redirect=%2Fweb%2Fguest%2Fpage2
6) Logout from DXP, open a new blank page in the browser
7) Paste this URL into the address bar: http://localhost:8080/web/guest/-/my-content?redirect=%2Fweb%2Fguest%2Fpage2
8) Inspect the page source in the <head> section:
Actual behavior:
<link data-senna-track="temporary" href="http://localhost:8080" rel="canonical">
will appear
Expected behavior:
The attribute rel="canonical not to be included, or, alternatively, to be there, but the full <link> element to be:
<link data-senna-track="temporary" href="http://localhost:8080/web/guest/-/my-content" rel="canonical">
- is caused by
-
LPS-82726 Canonical URLs include query parameters and negatively impact SEO performance as a result
- Closed