Skip to content

Commit

Permalink
Prefer canonical alias in rel=canonical link (#269)
Browse files Browse the repository at this point in the history
Follow-up to #266

Part of #251
  • Loading branch information
MadLittleMods authored Jun 22, 2023
1 parent 79df21b commit dd27c10
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/routes/room-routes.js
Original file line number Diff line number Diff line change
Expand Up @@ -918,7 +918,7 @@ router.get(
entryPoint: 'client/js/entry-client-hydrogen.js',
locationUrl: urlJoin(basePath, req.originalUrl),
canonicalUrl: matrixPublicArchiveURLCreator.archiveUrlForDate(
roomIdOrAlias,
roomData.canonicalAlias || roomIdOrAlias,
new Date(toTimestamp),
{
preferredPrecision: precisionFromUrl,
Expand Down

0 comments on commit dd27c10

Please sign in to comment.