diff --git a/webclient/package.json b/webclient/package.json index 86a98c897..8391de918 100644 --- a/webclient/package.json +++ b/webclient/package.json @@ -39,6 +39,7 @@ "typescript": "^4.9.4", "vite": "^4.0.4", "vite-plugin-md": "^0.21.5", + "vite-plugin-rewrite-all": "^1.0.1", "vue-i18n": "^9.2.2", "vue-tsc": "^1.0.22" }, diff --git a/webclient/vite.config.ts b/webclient/vite.config.ts index ce2903cdc..655165cce 100644 --- a/webclient/vite.config.ts +++ b/webclient/vite.config.ts @@ -6,6 +6,7 @@ import VueI18nPlugin from "@intlify/unplugin-vue-i18n/vite"; import Markdown from "vite-plugin-md"; import link from "@yankeeinlondon/link-builder"; import path from "path"; +import pluginRewriteAll from "vite-plugin-rewrite-all"; // https://vitejs.dev/config/ export default defineConfig({ @@ -42,6 +43,9 @@ export default defineConfig({ Markdown({ builders: [link()], }), + //The next one is included due to https://github.com/vitejs/vite/issues/2415 + // otherwise the router won't serve the details pages, as they include dots + pluginRewriteAll(), ], resolve: { alias: {