I like to use GitHub - pluginpal/strapi-webtools: 🔗 Unique, flexible and autogenerated URLs for your Strapi managed web content. for managing the URLs and fetching the data. It provides a single endpoint which will provide you the context & the data. So you can render differnet components based on the context.