From ce5873e0a08b9e58a6a65b83446941b8ec2df654 Mon Sep 17 00:00:00 2001 From: Asma AYARI Date: Thu, 3 Jun 2021 13:08:31 +0100 Subject: [PATCH] use html5 history to remove hash on urls for mailto SPA --- nginx.conf | 1 + webpack.commons.js | 1 + 2 files changed, 2 insertions(+) diff --git a/nginx.conf b/nginx.conf index 5726ed4..f9f6b9f 100644 --- a/nginx.conf +++ b/nginx.conf @@ -5,6 +5,7 @@ server { location /mailto { alias /usr/share/nginx/html/; + try_files $uri /index.html; } include /etc/nginx/extra-conf.d/*.conf; diff --git a/webpack.commons.js b/webpack.commons.js index 1bf0c92..0ccf821 100644 --- a/webpack.commons.js +++ b/webpack.commons.js @@ -254,6 +254,7 @@ module.exports = { compress: true, host: '0.0.0.0', disableHostCheck: true, + historyApiFallback: true, port: 9900, proxy: [{ context: [