opnform-host-nginx/client/pages
Chirag Chhatrala b2b04d7f2a
Self hosted domain redirect (#756)
* Integration pages from Notion

* Self hosted domain redirect

* Refactor root-redirect middleware and update 404 page layout

- Simplified the `root-redirect.js` middleware by removing the specific route checks, allowing for a more general redirect based on the `self_hosted` feature flag.
- Updated the 404 error page in `[...all].vue` by removing the unnecessary `NuxtLayout` wrapper and replacing `NuxtLink` with a custom `UButton` for navigation, enhancing the overall layout and user experience.

These changes aim to streamline the redirect logic and improve the presentation of the 404 error page.

* Refactor feature flag handling and update middleware

- Updated the condition in `Navbar.vue` to correctly evaluate the feature flags for rendering the AI form builder link.
- Removed the `feature-flags.global.js` middleware as it was no longer needed, streamlining the middleware structure.
- Enhanced the `root-redirect.js` middleware to utilize `h3`'s `sendRedirect` for server-side redirection, improving the redirect logic.
- Modified the `ai-form-builder.vue` page to include the new `root-redirect` middleware, ensuring proper redirection based on feature flags.

These changes aim to improve the handling of feature flags and redirection logic, enhancing the overall application flow.

---------

Co-authored-by: Julien Nahum <julien@nahum.net>
2025-05-20 14:51:44 +02:00
..
forms Enhance Form Visibility Logic and UI Components 2025-05-16 19:59:08 +02:00
integrations Self hosted domain redirect (#756) 2025-05-20 14:51:44 +02:00
oauth Re-login modal (#717) 2025-03-25 10:41:11 +01:00
password B8e23 submission list UI fixes (#426) 2024-05-29 11:00:27 +02:00
redirect Refactor form rendering (#747) 2025-05-07 17:15:56 +02:00
settings Refactor form rendering (#747) 2025-05-07 17:15:56 +02:00
subscriptions fix subscription success page (#636) 2024-12-02 10:55:09 +01:00
templates Decouple title from title block (#696) 2025-03-21 16:59:18 +01:00
[...all].vue Self hosted domain redirect (#756) 2025-05-20 14:51:44 +02:00
ai-form-builder.vue Self hosted domain redirect (#756) 2025-05-20 14:51:44 +02:00
home.vue Enhance Form Visibility Logic and UI Components 2025-05-16 19:59:08 +02:00
index.vue Self hosted domain redirect (#756) 2025-05-20 14:51:44 +02:00
login.vue 7a137 google auth (#520) 2024-08-19 15:22:57 +02:00
pricing.vue Docker compose setup (#513) 2024-08-05 12:06:20 +02:00
privacy-policy.vue Integration pages from Notion (#753) 2025-05-19 15:08:15 +02:00
register.vue Feature flags (#543) 2024-08-27 16:49:43 +02:00
report-abuse.vue Create form abuse page (#731) 2025-03-20 19:01:40 +01:00
settings.vue Update Billing Tab Condition in Settings Page 2025-01-27 11:37:36 +01:00
terms-conditions.vue Integration pages from Notion (#753) 2025-05-19 15:08:15 +02:00
update-credentials.vue Refactor Docker configuration and development setup 2025-01-29 17:19:36 +01:00