fix: correct GUID generation for routes

This commit is contained in:
Tony 2026-06-13 03:11:03 +08:00
parent c453c3323f
commit a1946363f5
1 changed files with 1 additions and 1 deletions

View File

@ -54,7 +54,7 @@ async function handler(ctx) {
description: routeData.description ? md.render(routeData.description) : '',
link: `https://docs.rsshub.app/${isEnglish ? '' : 'zh/'}routes/${namespace}`,
category: routeData.categories,
guid: `/${namespace}${routePath === '/' ? '' : routePath}`,
guid: routePath.replace(/\/$/, ''),
author: routeData.maintainers.join(', '),
}))
);