Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Url part after "#" discarded on second occurence. #1873

Closed
hl037 opened this issue Sep 13, 2021 · 2 comments
Closed

Url part after "#" discarded on second occurence. #1873

hl037 opened this issue Sep 13, 2021 · 2 comments

Comments

@hl037
Copy link

hl037 commented Sep 13, 2021

Version

16.4.1,

15.x

Reproduction link

github.com

Steps to reproduce

yarn install
yarn serve

open the page

look into the devtool, develop the dom tree to "div#d1>svg>use" and "div#d2>svg>use"

What is expected?

Both the href should be "http://[...].svg#logo"

What is actually happening?

The href URI in the second one is missing the "#logo" part


May be related to url-loader, but I don't know enougth the vue-loader stack to track further down the problem.
Any way, it could be a problem with an internal cache that looks up if an asset has already been processed, and past the generated URI directely if found, forgetting to look if the URI has a suffix.

@hl037
Copy link
Author

hl037 commented Sep 14, 2021

The bug is in @vue/sfc-compiler. As I guessed, it's a cache problem. I will post a fix.

@hl037
Copy link
Author

hl037 commented Sep 14, 2021

see vuejs/core#4581

@hl037 hl037 closed this as completed Sep 14, 2021
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

No branches or pull requests

1 participant