GatsbyJS-博客文章未在直接链接上加载 [英] GatsbyJS - Blog posts not loading on direct link
问题描述
我已经和盖茨比玩了一段时间了,绝对喜欢它.
I've been playing with Gatsby for a while now and absolutely love it.
我确实遇到了一个小问题,我不知道如何解决.
I did come across a little issue that I have no clue how to fix.
我正在从我的markdown文件中渲染博客文章.
I'm rendering blogs posts from my markdown files.
当您通过访问主页/根目录启动网站时,该网站的功能运行良好. https://www.ronaldlangeveld.com/
Functionality of the site works fine when you start the site by visiting the homepage / root. https://www.ronaldlangeveld.com/
但是,我在直接链接到博客文章时遇到了问题.
However, I'm having issues with direct links to my blog posts.
我可以通过单击主页上的链接来访问博客文章.但是,当尝试通过直接链接访问特定页面时,它只会加载标题,而不会加载帖子本身.示例 https://www.ronaldlangeveld.com/deleting-facebook .
I can access the blog posts by clicking on links from the homepage. However, when trying to access a specific page via direct link it only loads the header and not the post itself. Example https://www.ronaldlangeveld.com/deleting-facebook .
这是我的源代码: https://github.com/ronaldlangeveld/gatsbysite
有人处理过吗?
干杯!
推荐答案
在加载服务工作者之前,我发现的所有错误都是404错误.经过无数次尝试后,页面加载成功.
All I found was a 404 error before loading the service worker. After numerous attempts, the page is loaded without problems.
显然问题不是GatsbyJS
Apparently the problem is not GatsbyJS
这篇关于GatsbyJS-博客文章未在直接链接上加载的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!