-
-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
og:url incorrect when site is put under subdirectory #942
Comments
Same here. |
I am having the same issue. I have fixed it for now by adding a replacement for the 'url' option of open_graph in the layout/_partial/head.ejs: url: url.replace('/blog/blog', '/blog') - my blog is in the '/blog' subdirectory.
|
Same problem here. Problem is facebook won't display images when sharing links that have the invalid og:image tags. I worked it around by commenting those out. But it seems the true fix really should be in images = images.map(function(path) {
if (!urlFn.parse(path).host) {
if (path[0] !== '/') path = '/' + path;
return config.url + path; // <------ THIS IS WRONG
}
return path;
}); THe marked line above is wrong. Instead, we should use something like |
OK. I've fixed this with:
|
_config.yml
In HTML's meta
The text was updated successfully, but these errors were encountered: