Skip to content

Commit

Permalink
fix: revert not found
Browse files Browse the repository at this point in the history
  • Loading branch information
abuaboud committed May 24, 2024
1 parent 3f42eb0 commit 396f241
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions packages/ui/core/nginx.standard.conf
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ http {
# correct language
location ~ ^/(fr|de|it|pt|nl|ja|es|zh|pt|vi|id|hu|uk|bg) {
root /usr/share/nginx/html;
try_files $uri $uri/ /$1/index.html?$args =404;
try_files $uri $uri/ /$1/index.html;
}

location ~ ^/(fr|de|it|pt|nl|ja|es|zh|pt|vi|id|hu|uk|bg)$ {
Expand All @@ -80,16 +80,16 @@ http {
add_header Cache-Control "public, max-age=31536000, immutable";
}

# USe the default language for the root of the application
location / {
root /usr/share/nginx/html/en;
try_files $uri $uri/ /index.html?$args;
}

location /not-found {
root /usr/share/nginx/html/en;
try_files $uri $uri/ /index.html?$args =404;
}

# USe the default language for the root of the application
location / {
root /usr/share/nginx/html/en;
try_files $uri $uri/ /index.html?$args;
}
}
}
2 changes: 1 addition & 1 deletion packages/ui/core/src/app/app-routing.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ export const routes: Routes = [
},
{
path: '**',
redirectTo: '/not-found',
component: NotFoundComponent,
},
];

Expand Down

0 comments on commit 396f241

Please sign in to comment.