简体   繁体   English

Shopify上博客文章的固定链接是什么?

[英]What is the permalink to a blog post on Shopify?

Given a product id (PRODUCTID), the permalink to the published product page on Shopify is https://SHOP.myshopify.com/products/ID . 给定产品ID(PRODUCTID),Shopify上已发布产品页面的永久链接为https://SHOP.myshopify.com/products/ID

For a blog post, there are two ids, id of the blog post, and id of the blog. 对于博客文章,有两个ID,即博客文章的ID和博客的ID。 How do I get the permalink to the blog post? 我如何获得博客文章的永久链接?

I tried https://SHOP.myshopify.com/articles/BLOGPOSTID , but it did not work. 我尝试了https://SHOP.myshopify.com/articles/BLOGPOSTID ,但是没有用。

Not sure what you mean by permalink. 不确定永久链接是什么意思。 When you access a product, if you were going to want a longer term solid reference to it, I think the handle serves as a better "permalink" than ID. 当您访问产品时,如果您想长期使用该产品,我认为该手柄比ID更好的“永久链接”。 Handle is used for search engines, and the site map. 句柄用于搜索引擎和站点地图。 ID's are more for an administrative view of things, and note that an ID can change if you were to accidentally delete the product and recreate it. ID的用途更多是用于管理事物,请注意,如果您不小心删除了产品并重新创建,ID可能会更改。 Happens all the time I bet. 我打赌一直都在发生。 But the handle, that stays. 但是手柄仍然存在。

As for referencing blog articles, yes. 至于引用博客文章,是的。 They remain a bit tougher than products, since they do have that extra reference ID in the path. 它们仍然比产品更坚固,因为它们在路径中确实具有该额外的参考ID。 The reference of blogs/name_of_the_blog/ID_article_handle is awkward for sure. 博客/ name_of_the_blog / ID_article_handle的引用肯定很尴尬。 Why Shopify still keeps the article ID in there is due to some really longstanding old code no one has to see real reason to fix. 为什么Shopify仍将文章ID保留在其中,是由于某些真正长期的旧代码所致,因此没有人知道要修复的真正原因。

It used to be a lot of pseudo-seo-smart people dissed the whole Shopify URL scheme as unworkable for SEO, but I think in the end, they were proven to be a hefty lot of nothing to see here, move along. 过去,有很多伪聪明的人认为整个Shopify URL方案不适用于SEO,但我认为最终证明了他们无可奈何,继续前进。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM