-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Download button opens new tab instead of downloading #1247
Comments
I had the same issue and I fixed it by doing the following. See https://c3.ai/covid-19-api-documentation/ for example (the page might ask you to accept some terms but these are COVID-19 public docs, so no harm in accepting and getting to the page, methinks.)
See our OpenApi spec to see how I did it. Hope it helps! Raj |
Thanks Raj, I manually changed that in the page and that worked and finally downloaded.
Do you know how this gets set though? Is it done by the redoc build script and I need to change arguments? UPDATE: I just realised that the download still works for a full URL when I add the
|
I don't know that, and glad it worked for you. I'll keep digging when I have a moment and post here anything new I learned. |
thank you for fixing so quickly @RomanHotsiy ! works like a treat :) |
we have noticed an issue when moving to openApi 3.0 that the download button does not download but just opens the data in a new tab.
we are using openApi 3.0 and https://cdn.jsdelivr.net/npm/redoc@next/bundles/redoc.standalone.js for the build script.
when using the local redoc-cli client to build, the download works fine.
I can see the same happening in your redoc page when downloading the docs: http://redocly.github.io/redoc/
To re-create you can try our api docs
https://help.rapid7.com/insightAccount/en-us/api/v1/docs.html
The download works fine with docs using openApi 2.0
https://help.rapid7.com/insightappsec/en-us/api/v1/docs.html
The text was updated successfully, but these errors were encountered: