Skip to content

Relative URLs not resolved properly from modules #2269

Open
@WebReflection

Description

@WebReflection

What happened?

Well, it looks like if we have relative URLs in module resolution these are all resolved from where the index.html or any x.html is running, as opposite of being resolved from where the current script is, demo here:
https://pyscript.com/@agiammarchi/no-image/v1?files=js/image.js

This is both a bummer and a fully unexpected thing because it means we might need to hook into dynamic import URL resolution to provide the correct path to imported modules at runtime which might be easy or impossible, 2025 will tell us how bad is that.

Metadata

Metadata

Assignees

No one assigned

    Labels

    3rd partyErrors coming from foreign projects we either enable or rely onneeds-triageIssue needs triage

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy