Remove all the formatting characters from the id to prevent invalid url generation#833
Merged
Remove all the formatting characters from the id to prevent invalid url generation#833
Conversation
Contributor
Author
davsclaus
approved these changes
Apr 26, 2022
oscerd
approved these changes
Apr 26, 2022
abe9d3f to
3a3fd84
Compare
Contributor
|
🚀 Preview is available at |
essobedo
added a commit
to apache/camel
that referenced
this pull request
Apr 27, 2022
## Motivation ``` public static final String MONGO_ID = "_id"; // default id field ``` Causes this problem while generating the website ``` [check:links ] Found invalid urls in components/next/mongodb-component.html: [check:links ] Fragment #_endpoint_header%3C/em%3Eid at components/next/mongodb-component.html does not exist! ``` ## Modifications * Re-declare `_id` as an header of Camel MongoDB as the actual fix is in apache/camel-website#833
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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
If the text provided to the
boldLinkfunction contains special formatting characters of asciidoc, the generation of the URL fails, consequently the website cannot be built due to an error of the next type:In the previous example the provided text is
_idwhich contains an underscore that is one of the formatting character of asciidocModification
boldLinkfunction to remove all the special characters from the provided text used to generate the link