Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions docker/nginx/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,12 @@ http {
listen [::]:${NGINX_PORT};
server_name _;

# Internally rewrite core marketing routes to the new landing page
# while keeping the user-visible URL untouched.
location ~ ^/(|login|organization)/?$ {
rewrite ^/(.*)$ /new/landingpage/$1 last;
}

# Internally rewrite the non-suffixed path so TLS offloading doesn't
# trigger an external redirect back to the Langflow port
location = /new/landingpage {
Expand Down
2 changes: 1 addition & 1 deletion src/new-landingpage/src/landingRoutes.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Shared constants for routing within the new landing page experience.
// Keep this in sync with the BrowserRouter basename so redirects land on the
// correct path regardless of which component triggers them.
export const LANDING_BASENAME = "/new/landingpage";
export const LANDING_BASENAME = "";
Loading