Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Autoscroll to model section using #model-{Model} #4230

Closed
mgrzechocinski opened this issue Feb 15, 2018 · 2 comments
Closed

Autoscroll to model section using #model-{Model} #4230

mgrzechocinski opened this issue Feb 15, 2018 · 2 comments

Comments

@mgrzechocinski
Copy link

mgrzechocinski commented Feb 15, 2018

Hi,

I need to refer few models in SwaggerUI web page from my wiki page. What I'm trying to achieve is to have a direct link, once clicked, will open SwaggerUI page scrolled down to the position of that model.

I found it working by appending #model-{Model} to my Swagger base path. Taking http://petstore.swagger.io as an example, when I simply open it and then append URL with #models-Order, it works fine.

screen recording 2018-02-15 at 03 28 pm

However, when I try to open that link, SwaggerUI changes URL to http://petstore.swagger.io/#/model-Order (notice additional slash after #):

screen recording 2018-02-15 at 03 31 pm

I'm trying to figure out where the problem might be, or maybe it's not supported by SwaggerUI? Since it's fully reproducable on petstore project I do not suspect my particular nginx/SwaggerUI configuration to be wrong.

Will appreciate any hints around that.

@heldersepu
Copy link
Contributor

heldersepu commented Feb 15, 2018

Looks like this is a dup of a very old issue #1369

@mgrzechocinski
Copy link
Author

Yep. Sorry, didn't find it. Closing.

@lock lock bot locked and limited conversation to collaborators Jul 2, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants