Subscribe on changes!

@vue/server-renderer renderToString generating incorrect src URL for images within a router link

avatar
Mar 18th 2021

Version

3.0.7

Reproduction link

https://github.com/lukewarlow/vue-server-render-bug

Steps to reproduce

Clone the git repository. Run npm install and then npm run generate. This will generate a dist/static/index.html file.

What is expected?

The generated html file should have two img tags which point to different images. 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 both the generated img tags have the same src URL.