Have you read the Contributing Guidelines on issues?
Prerequisites
Description
Meta data "og:url" - url has double slashes in the prerendered HTML
<meta data-rh="true" property="og:url" content="https://example.com//docs/courses/how-are-the-course-accessed-with-the-lifetime-membership/">
It happens when slash is added at the end of the URL in docusaurus.config.js, in my case
url: 'https://example.com/'
Reproducible demo
No response
Steps to reproduce
- Set in config url to:
https://example.com/
- Build
- Search HTML code for
og:url
Expected behavior
One slash in the URL
Actual behavior
Double slashes in the URL
Your environment
- Public source code:
- Public site URL: docs.divi.space
- Docusaurus version used: 2.0.1
- Environment name and version (e.g. Chrome 89, Node.js 16.4): node v16.17.0
- Operating system and version (e.g. Ubuntu 20.04.2 LTS): macOS Monterey 12.2
Self-service
Have you read the Contributing Guidelines on issues?
Prerequisites
npm run clearoryarn clearcommand.rm -rf node_modules yarn.lock package-lock.jsonand re-installing packages.Description
Meta data "og:url" - url has double slashes in the prerendered HTML
<meta data-rh="true" property="og:url" content="https://example.com//docs/courses/how-are-the-course-accessed-with-the-lifetime-membership/">It happens when slash is added at the end of the URL in docusaurus.config.js, in my case
url: 'https://example.com/'Reproducible demo
No response
Steps to reproduce
https://example.com/og:urlExpected behavior
One slash in the URL
Actual behavior
Double slashes in the URL
Your environment
Self-service