vuepress-plugin-autometa icon indicating copy to clipboard operation
vuepress-plugin-autometa copied to clipboard

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

Open ptandler opened this issue 5 years ago • 1 comments

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

  • vuepress-plugin-autometa version: 0.1.13
  • vuepress version : 1.2.0
  • OS : win

ptandler avatar Jan 27 '20 14:01 ptandler

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.

webmasterish avatar Feb 07 '20 17:02 webmasterish