Skip to content

Xref Link to For Swagger Rest API EndPoint #9819

Answered by filzrev
groogiam asked this question in Q&A
Discussion options

You must be logged in to vote

Thanks for providing example codes.
I can confirmed that problem is reproduced when using [title](xref:{uid}) syntax with UID that contain spaces.

I've confirmed this problem is resolved by using <xref:> syntax or escaping URL.

Examples links that works as expected

- [Title1](<xref:Swagger Petstore/1.0.0/createUser>)
- [Title2](xref:Swagger%20Petstore/1.0.0/createUser)
- [Title3](@Swagger%20Petstore/1.0.0/createUser)

Examples not working

- [BadLink1](xref:Swagger Petstore/1.0.0/createUser)
- [BadLink2](@"Swagger Petstore/1.0.0/createUser")

When using xref:{uid} syntax. It is treated as normal URL that have xref: protocol.
So if URL contains spaces. [title](xref:uid) will not be convert…

Replies: 3 comments 4 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
4 replies
@groogiam
Comment options

@groogiam
Comment options

@filzrev
Comment options

@groogiam
Comment options

Answer selected by groogiam
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants