Skip to content

Vite: Don't rebase absolute url()s#15275

Merged
thecrypticace merged 2 commits into
nextfrom
fix/dont-rebase-absolute-urls
Dec 2, 2024
Merged

Vite: Don't rebase absolute url()s#15275
thecrypticace merged 2 commits into
nextfrom
fix/dont-rebase-absolute-urls

Conversation

@philipp-spiess

Copy link
Copy Markdown
Contributor

Closes #15269

This PR fixes an issue where our Vite extension was rebasing absolute urls inside @import-ed files. We forgot to cover this when we implemented the URL rebasing.

Test Plan

We validated that this fixes the repro in #15269:

Screenshot 2024-12-02 at 18 07 35

Also added a unit test for this.

@philipp-spiess philipp-spiess requested a review from a team as a code owner December 2, 2024 17:11
@philipp-spiess philipp-spiess force-pushed the fix/dont-rebase-absolute-urls branch from ed1ce34 to 0b65e24 Compare December 2, 2024 17:12
@thecrypticace thecrypticace changed the title Vite: Don't rebase absolute url() Vite: Don't rebase absolute url()s Dec 2, 2024
@thecrypticace thecrypticace merged commit 667af25 into next Dec 2, 2024
@thecrypticace thecrypticace deleted the fix/dont-rebase-absolute-urls branch December 2, 2024 19:23
philipp-spiess added a commit that referenced this pull request Dec 3, 2024
I noticed uncommitted changes of #15275 on my local setup so here's the
updated changelog and the added unit test.
@hugentobler

Copy link
Copy Markdown

Thank you for fixing

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.

URLs resolve incorrectly in subfolders

3 participants