Skip to content

Conversation

@godmar
Copy link

@godmar godmar commented Aug 18, 2020

The example repo, when cloned into the server folder of nginx, fails to work via localhost on Ubuntu/Linux.
For instance, going to
http://localhost/phaser3-examples/public/boot.html?src=src\camera\multi%20camera\boot.json
attempts to access http://localhost/phaser3-examples/public/Controller.js?_=1597765543353
instead of http://localhost/phaser3-examples/public/src/camera/multi%20camera/Controller.js?_=1597765624222
resulting in a 404.

This patch fixes the provided repo when served directly in this way. The code in index.html appears to use slashes.
Tested on Linux/nginx/Firefox via localhost (not tested on Windows).
I do not know what strategy for converting slashes/backslashes is being used.

This fixes the provided repo when served directly.
Otherwise, for instance, going to
http://localhost/phaser3-examples/public/boot.html?src=src\camera\multi%20camera\boot.json
attempts to access http://localhost/phaser3-examples/public/Controller.js?_=1597765543353
instead of http://localhost/phaser3-examples/public/src/camera/multi%20camera/Controller.js?_=1597765624222
resulting in a 404. The code in index.html appears to use slashes.
Tested on Linux/nginx/Firefox via localhost
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

Successfully merging this pull request may close these issues.

1 participant