@vue/server-renderer renderToString generating incorrect srcset URL for source elements within a router link #3536
Labels
🔨 p3-minor-bug
Priority 3: this fixes a bug, but is an edge case that only affects very specific usage.
🐞 bug
Something isn't working
Version
3.0.11
Reproduction link
https://github.com/lukewarlow/vue-server-render-bug
Steps to reproduce
Clone the git repository. Run
npm install
and thennpm run generate
. This will generate adist/static/index.html
file. (One is already generated)What is expected?
The generated html file should have two picture elements which point to different images in both the source element and the img element. As seen in the source file at
src/views/Home.vue
.What is actually happening?
In
dist/static/index.html
you will be able to see that the img elements have differentsrc
values which is correct. But the source elements both have the samesrcset
value which is incorrect.The text was updated successfully, but these errors were encountered: