webmasterish / vuepress-plugin-autometa

Auto meta tags plugin for VuePress 1.x
MIT License
40 stars 6 forks source link

generated image URLs broken for urls computed by Vue e.g $withBase #7

Open ptandler opened 4 years ago

ptandler commented 4 years ago

Description

The VuePress documentation recommends to use $withBase() to include images when the site is deployed at a non root url:

<img :src="$withBase('/img/logo.svg')" alt="logo" />

Expected Behavior

I'd expect that the url is computed correctly, based on the vuepress config.

Actual Behavior

Generated is this:

<meta property="og:image" content="https://example.com/$withBase(">

Steps to Reproduce

Put the img tag as stated above in your md file.

Your Environment

webmasterish commented 4 years ago

Thanks @ptandler for reporting it, and apologies for the late response.

I've been very busy lately, and still am, so I'm not sure when I'll have some time to take a look. Meanwhile, if you have a solution, feel free to submit a PR.