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

Download button just opens a new tab with same viewer #462

Closed
auahmed opened this issue Apr 19, 2018 · 3 comments
Closed

Download button just opens a new tab with same viewer #462

auahmed opened this issue Apr 19, 2018 · 3 comments

Comments

@auahmed
Copy link

auahmed commented Apr 19, 2018

So i was using RedocStandalone from redoc and passing it a specUrl with the actual json swagger content for the content but when i click the download button, i dont get the yaml or json downloaded.
It just opens a brand new tab with the same window.

Also is there any way of hiding the search option on the left panel?

<RedocStandalone specUrl={this.props.selectedDefinition} />
@RomanHotsiy
Copy link
Member

Which browser are you using? Could you set up a minimal reproducible sample?
Thanks

@samallisonds
Copy link

I get the same thing, but I'm passing in the spec directly (having loaded it earlier from an api).

<RedocStandalone spec={this.state.swagger}

It happens in both Chrome and Edge

@fogine
Copy link

fogine commented Jul 13, 2018

This might be caused by incorrect routing rules of your back-end server which is responsible for serving the files. In order for the download button to work, you should specify valid specUrl argument.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants