-
Notifications
You must be signed in to change notification settings - Fork 79
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
fix(core): respect isVisibleInNavigation for blog pages #854
Conversation
🦋 Changeset detectedLatest commit: 690bbf7 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
The latest updates on your projects. Learn more about Vercel for Git ↗︎
3 Ignored Deployments
|
⚡️🏠 Lighthouse reportLighthouse ran against https://catalyst-latest-js7aqimm2-bigcommerce-platform.vercel.app 🖥️ DesktopWe ran Lighthouse against the changes on a desktop and produced this report. Here's the summary:
📱 MobileWe ran Lighthouse against the changes on a mobile and produced this report. Here's the summary:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So this prevent 404 but will we look into using isVisibleInNavigation
in the footer link?
@jorgemoya this automatically filters it in the footer for us: https://github.com/bigcommerce/catalyst/blob/main/apps/core/components/footer/footer-menus/web-page-footer-menu.tsx#L9 |
Looks good on our side. From this change, our expectation would be that we could manually remove the blog structure for posts & the main index page if we wanted to complete disable it in a Catalyst build, with the setting now only controlling whether it appears in navigation links or not. Another thought we had is that we could do a length check on published blog posts to decide if the main blog page shows a default 404, or if it shows a no articles found display within the blog overview page - but this last part feels like it can be a dev/client decision and not something that Catalyst would need to include by default. |
I was thinking about this as I was working through this fix. A big reason I didn't show an empty page is due to not having designs for an empty blog list so I omitted it for now. If we can work in a feature on BigCommerce's side to actually disable the blog entirely, I think we should implement an empty list UI. |
Yeah that makes sense. I think there are pros & cons for both ways. For example, if pages link to /blog/ and that is a full 404 page, now there is a SEO score "penalty" for linking to a missing page whereas the empty list UI version would not penalize for linking to a 404. However, the empty list UI could possibly lead to an SEO penalty for having a page with no useful content, causing the average quality score for backlinks to go down. Obviously there is little reason to have either an empty blog page, or a 404 blog page, and this will most likely only ever affect a site on launch that hasn't published any blogs yet. Personally though I am a fan of empty list UI because that leaves the decision up to the developers and clients - at least until there is a setting to completely disable. I have seen cases where store themes/headless builds will go live without the content ready, with the client adding content later - in other blogging systems that have dev/staging/production publish statuses, it's also possible for a preview build to have no blogs, but a staging or production build to have published articles. The empty list UI fits this need better for maintaining a consistent sitemap, backlinks list (all environments go to a blog/ page, instead of some leading to a 404). Also, when a full 404 is used, that decision may cause the blog overview page to not get indexed initially and/or not re-indexed as quickly by search engines. |
That's some great insight on SEO value for it. Overall it seems like it's a better merchant experience than the 404 page, so I'll go ahead and put a ticket in to get some designs for an empty blog page. |
Fixes: #853
What/Why?
Doesn't return 404 if the blog is disabled from navigation. This is to preserve functionality from Stencil -> Catalyst.
Testing