Skip to content
This repository has been archived by the owner on Jan 21, 2020. It is now read-only.

Wrong asset uri #10

Open
Gounlaf opened this issue Feb 12, 2015 · 3 comments
Open

Wrong asset uri #10

Gounlaf opened this issue Feb 12, 2015 · 3 comments

Comments

@Gounlaf
Copy link

Gounlaf commented Feb 12, 2015

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

@sbuckpesch
Copy link

+1

@fluentdev
Copy link

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.

@weierophinney
Copy link
Member

This repository has been closed and moved to laminas-api-tools/api-tools-documentation-swagger; a new issue has been opened at laminas-api-tools/api-tools-documentation-swagger#12.

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

No branches or pull requests

4 participants