mirror of
https://github.com/Redocly/redoc.git
synced 2024-11-22 16:46:34 +03:00
fix: download button downloads index.html instead of spec with CLI
fixes #594
This commit is contained in:
parent
23559fbece
commit
334f9047a8
|
@ -81,7 +81,7 @@ export class ApiInfo extends React.Component<ApiInfoProps> {
|
|||
<DownloadButton
|
||||
download={downloadFilename}
|
||||
target="_blank"
|
||||
href={downloadLink || '#'}
|
||||
href={downloadLink}
|
||||
onClick={this.handleDownloadClick}
|
||||
>
|
||||
Download
|
||||
|
|
|
@ -20,6 +20,7 @@ export const DownloadButton = styled.a`
|
|||
padding: 4px 8px 4px;
|
||||
display: inline-block;
|
||||
text-decoration: none;
|
||||
cursor: pointer;
|
||||
|
||||
${extensionsHook('DownloadButton')};
|
||||
`;
|
||||
|
|
Loading…
Reference in New Issue
Block a user