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

Wrong asset uri #12

Open
weierophinney opened this issue Dec 31, 2019 · 2 comments
Open

Wrong asset uri #12

weierophinney opened this issue Dec 31, 2019 · 2 comments

Comments

@weierophinney
Copy link
Contributor

The throbber.gif file uri is set directly in JavaScript, with a relative path ; as a consequence, the file is not loaded correctly (and the alternative text is displayed)

I don't know how to fix it properly

Thanks


Originally posted by @Gounlaf at zfcampus/zf-apigility-documentation-swagger#10

@weierophinney
Copy link
Contributor Author

@weierophinney
Copy link
Contributor Author

The following two files can be updated in public/zf-apigility-documentation-swagger directory:

swagger-ui.js
swagger-ui.min.js

If you are using the asset manager this directory is copied to the project public directory at the time of install.

On line 355 in swagger-ui.js change src='images/throbber.gif' to
src='/zf-apigility-documentation-swagger/images/throbber.gif'

You can search swagger-ui.min.js for src='images/throbber.gif' and replace with
src='/zf-apigility-documentation-swagger/images/throbber.gif'

Hope this helps.


Originally posted by @fluentdev at zfcampus/zf-apigility-documentation-swagger#10 (comment)

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

1 participant