webstudio-is / webstudio

Open source website builder and Webflow alternative. Webstudio is an advanced visual builder that connects to any headless CMS, supports all CSS properties, and can be hosted anywhere, including with us.
https://webstudio.is
GNU Affero General Public License v3.0
5.23k stars 629 forks source link

Allow forwarding to other pages #4098

Open TrySound opened 1 month ago

TrySound commented 1 month ago

User wants to forward page rendering to other pages for example in cases of 404 status in cms data redirect to /* page.

There are 2 options

kof commented 1 month ago

Is this meant to be on page settings? We also have this issue for redirects of Webhook Forms, maybe both could be solved with the same feature? https://github.com/webstudio-is/webstudio/issues/3530

figotech commented 1 week ago

Another use case for a "forward page" is a template system: eg: a CMS blog has a "template field" that the user selected, right now you have two options to render a template depending on choice:

1) have all elements in a single page and depending on the field toggle the "show"setting on and off for the components. 2) use the value of the template field to conditionally redirect to another webstudio page that will render.

On option 1 if you have many elements or templates it will be hard to visually manage On option 2 you are querying the CMS twice, one for deciding if its a render, two in the page that actually renders.