Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ptandler opened this issue Jan 27, 2020 · 1 comment
Open

Comments

@ptandler
Copy link

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
@webmasterish
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants