URL in blog schema not respecting trailingSlash in config #10755
Labels
bug
An error in the Docusaurus core causing instability or issues with its execution
status: needs triage
This issue has not been triaged by maintainers
Have you read the Contributing Guidelines on issues?
Prerequisites
npm run clear
oryarn clear
command.rm -rf node_modules yarn.lock package-lock.json
and re-installing packages.Description
When setting
trailingSlash
to true the Blog posts schema does not include the trailing slash in@id
mainEntityOfPage
url
If you add a url using slug in the front matter the schema works OK.
https://stackblitz.com/edit/github-hj1rpowa?file=docusaurus.config.ts
Reproducible demo
https://stackblitz.com/edit/github-hj1rpowa?file=docusaurus.config.ts
Steps to reproduce
trailingSlash: true,
to the confignpm run build
>npm run serve
Expected behavior
I thought Id see urls with trailing slashes in the Schema for the blog post(s).
Actual behavior
No trailing slash in the schema for the blog post(s).
Your environment
Self-service
The text was updated successfully, but these errors were encountered: