-
Notifications
You must be signed in to change notification settings - Fork 9.2k
Description
When I click on a link (with deeplink to an operation) and try to get back with my browser's back-button, I need to click 3 times instead of one time to get back to the page I was previously.
It's possible to reproduce this behaviour with the petstore example.
Q | A |
---|---|
Bug or feature request? | Bug |
Which Swagger/OpenAPI version? | 3 |
Which Swagger-UI version? | Swagger-UI 3.X (http://petstore.swagger.io/#) |
How did you install Swagger-UI? | / |
Which browser & version? | Firefox 57 and Google Chrome 59 |
Which operating system? | Ubuntu 16.04 |
Demonstration API definition
http://petstore.swagger.io/#/pet/getPetById
Expected Behavior
I click on the link to deeplink to an operation. The link opens and jumps to the anchor. If I click one time on the back-button of my browser I expect to get back to the page where I clicked the link previously.
Current Behavior
- Click on the link with deeplink: As expected it jumps to the operation. The link in the browser address bar is: http://petstore.swagger.io/#/pet/getPetById
- First click on the back-button of the browser: No change on the page, the link in the browser address bar changes to: http://petstore.swagger.io/#/pet
- Second click on the back-button of the browser: No change on the page, the link in the browser address bar changes to: http://petstore.swagger.io/#/pet/getPetById
- Third click on the back-button of the browser: Jumping back to the page where I previously clicked the button.
Context
We have a lot of API's. To help partners find specific operations faster, we made a list of all operations. With clicking on the operation they get to the detail overview. After clicking one time on a link, it's unexpected to have to click three times to return to the previous site.