A question about href prefix
We have a documentation site that we want to host in production under a subfolder of our domain (
The href prefix (
/learn) seems like a good solution to this but our problem is that when we publish to codeocean-learn.webflow.io all internal links are broken.
For example, a link from page A to page B (page link) translates in the generated HTML as
href=‘/learn/B’. This works fine when browsing our domain (
codeocean.com/learn) but will result in 404 when browsing the
codeocean-learn.webflow.io site since B is hosted at
It’s important to note that we use the
codeocean-learn.webflow.io site as staging and publish to
learn.codeocean.com for production. Meaning that we want to be able to browse
codeocean-learn.webflow.io and have it functional before we approve changes and update
Can we use href prefix in a way that will work for both published sites? Is there a different solution?
Asaf from Code Ocean