slug is missing from og:url
See original GitHub issueDescribe the bug post slug is missing from og:url, resulting all embed linked to main page instead of post.
To Reproduce
- Open demo blog post like this
- og:url is set to
https://nobelium.vercel.app
(instead ofhttps://nobelium.vercel.app/what-make-vs-code
)
Expected behavior og:url should be post link, not blog main page link
Screenshots
Platform:
- OS: Windows
- Browser: Chrome
- Version: 106.0.5249.91
Additional context
I fixed by setting Layout
tag slug to frontMatter.slug
- See this line
Issue Analytics
- State:
- Created a year ago
- Comments:5
Top Results From Across the Web
slug not showing in browsers - WordPress.org
The name of the slug is Press. The url should read /press. It actually reads /?page_id=31. Why? This topic was modified 1 year,...
Read more >URL slugs - Squarespace Help Center
A URL slug is the exact address of a specific page or collection item on your site. Squarespace automatically assigns a URL slug...
Read more >Topic: 'Slugs' option has disappeared | WordPress.com Forums
The only option it gives me is to write an excerpt. It allows me to change slugs through the WordPress app on my...
Read more >Slug disappeared - Toolset
Go to Toolset > Post Types and edit the custom post type where you have experienced the missing permalink slug problem. Scroll down...
Read more >OctoberCMS: Why is the slug value missing in "post.url" of the ...
The url of the blog post page was url = "/blog/post" . I changed it to url = "/blog/post/:slug" and the issue was...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Hello, it’s easy to fix this problem.
In Container.js first line add:
In line 9 below add:
Edit line 37 code:
Finally, if you are interested, you can refer to my fork project: Notionic
Closed - Looks like repo is not actively on development.