Skip to content

Commit 59821b4

Browse files
committed
fix(search): use og:page instead canonical in writerside
see https://youtrack.jetbrains.com/issue/WRS-6048
1 parent fddbba8 commit 59821b4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/doindex/parsers/writerside.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ async function docs($, url, data) {
197197

198198
/** @type {import('cheerio').Cheerio} */
199199
const $article = $('article.article');
200-
const pageUrl = new URL($('link[rel="canonical"]').attr('href'));
200+
const pageUrl = new URL($('meta[property="og:url"]').attr('content'));
201201

202202
dropUiElements($article);
203203
dropIrrelevantSections($article);

0 commit comments

Comments
 (0)