Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Motivation
Fix #901. Currently the URLs in sitemap are incorrect when
baseUrl
!=/
. This PR fixes the bug.Have you read the Contributing Guidelines on pull requests?
yes
Test Plan
It works locally.
![](https://camo.githubusercontent.com/9a149cf2dedc6e98135bb5ff8fca0037f49f3a5255c9a50cdea21bfcc8d0f385/68747470733a2f2f692e696d6775722e636f6d2f6d643154344d4d2e706e67)
![](https://camo.githubusercontent.com/edc5fd63d685fcc2c29e7f5c9ba9b7827d67049e299cf49e43417496e566ff1c/68747470733a2f2f692e696d6775722e636f6d2f3349705041704a2e706e67)
When baseUrl =
![](https://camo.githubusercontent.com/57bd39c7862b4556e880982f6f98bcc5f0359063cff911464fcd98167dc8329a/68747470733a2f2f692e696d6775722e636f6d2f464a65385042312e706e67)
![](https://camo.githubusercontent.com/8f01734f319484033d065227592c63b5ebd3d44a9c49eaaf57b5d503a6fc89d8/68747470733a2f2f692e696d6775722e636f6d2f545962727877662e706e67)
/
Related PRs
(If this PR adds or changes functionality, please take some time to update the docs at https://github.com/facebook/docusaurus, and link to your PR here.)