Skip to content

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

@lukewarlow

Description

@lukewarlow

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    ❗ p4-importantPriority 4: this fixes bugs that violate documented behavior, or significantly improves perf.🐞 bugSomething isn't workingscope: ssr

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions