Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
Hello,
How to construct the URL for any resource handle ?
I couldn't see any option to get absolute URL of the resource using rest API.
say the blog article has url "hello-world", whether to append "/blogs/" or "/blogs/news/" is not clear.
If any other API is available to see what are all prefixes to append with respect to resource ( say product, page etc), please mention.
Solved! Go to the solution
This is an accepted solution.
Hello Developers,
Any inputs will be highly appreciated
We got response from Support them:
Typically Shopify doesn't provide a means to capture URL for resources within the API, because a resource may have more than one URL. For example a product could be accessed from multiple different collections. As a result, you are generally required to build a URL via context. To my knowledge only the Article and Blog API would retrieve blog information, and both in this case only allow for retrieval of the handles, but not the URLs.
But this is still unanswered. From Rest API, we have article dict with handle and we are stuck in formulating URL. If reading url can be done via graphql, please share a link. Thanks
This is an accepted solution.
Shopify and our financial partners regularly review and update verification requiremen...
By Jacqui Mar 14, 2025Unlock the potential of marketing on your business growth with Shopify Academy's late...
By Shopify Mar 12, 2025Learn how to increase conversion rates in every stage of the customer journey by enroll...
By Shopify Mar 5, 2025