playcanvas / playcanvas/engine

Ionic path causes issues with asset loading

Open
#3,491 13 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

area: assets enhancement
Dominant language
JavaScript
Stars
16.8k
Forks
2k
Avg merge
4h 32m
Merged PRs (30d)
222

Description

https://github.com/playcanvas/engine/blob/3071b54d832815d6a3012f5d97bf5cbaf6f7741e/src/net/http.js#L492

This should also accept ionic path:

if (xhr.responseURL && (xhr.responseURL.startsWith('file:///') || xhr.responseURL.startsWith('ionic:///'))) {

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Open src/net/http.js at the responseURL handling around line 492 and compare the existing file:/// check with the requested ionic:/// path. Done means asset loading accepts both URL schemes without changing other responseURL behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
web-dev
Issue type
Bug
Difficulty
1/5
Estimated time
Under an hour
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.