Repository: kestra-io/kestra
Issue: Plugin doc (dot-including URLs) are not working in devserver
Labels: bug
enhancement

### Expected Behavior

_No response_

### Actual Behaviour

Go to Documentation -> Plugins -> some plugin task
Refresh
404

solution -> add [vite-plugin-rewrite-all](https://www.npmjs.com/package/vite-plugin-rewrite-all)

### Steps To Reproduce

_No response_

### Environment Information

- Kestra Version:
- Operating System (OS / Docker / Kubernetes):
- Java Version (If not docker):


### Example flow

_No response_

Issue comments:

Pull request review comments:

Patch that resolved the issue:
diff --git a/ui/package-lock.json b/ui/package-lock.json
index c0a988f062..07f1c51111 100644
--- a/ui/package-lock.json
+++ b/ui/package-lock.json
@@ -64,6 +64,7 @@
         "prettier": "^3.0.1",
         "sass": "^1.64.2",
         "vite": "^4.4.9",
+        "vite-plugin-rewrite-all": "^1.0.1",
         "vitest": "^0.34.1"
       }
     },
@@ -432,9 +433,9 @@
       }
     },
     "node_modules/@types/markdown-it": {
-      "version": "12.2.3",
-      "resolved": "https://registry.npmjs.org/@types/markdown-it/-/markdown-it-12.2.3.tgz",
-      "integrity": "sha512-GKMHFfv3458yYy+v/N8gjufHO6MSZKCOXpZc5GXIWWy8uldwfmPn98vp81gZ5f9SVw8YYBctgfJ22a2d7AOMeQ==",
+      "version": "13.0.0",
+      "resolved": "https://registry.npmjs.org/@types/markdown-it/-/markdown-it-13.0.0.tgz",
+      "integrity": "sha512-mPTaUl5glYfzdJFeCsvhXQwZKdyszNAZcMm5ZTP5SfpTu+vIbog7J3z8Fa4x/Fzv5TB4R6OA/pHBYIYmkYOWGQ==",
       "peer": true,
       "dependencies": {
         "@types/linkify-it": "*",
@@ -1312,6 +1313,15 @@
         "proto-list": "~1.2.1"
       }
     },
+    "node_modules/connect-history-api-fallback": {
+      "version": "1.6.0",
+      "resolved": "https://registry.npmjs.org/connect-history-api-fallback/-/connect-history-api-fallback-1.6.0.tgz",
+      "integrity": "sha512-e54B99q/OUoH64zYYRf3HBP5z24G38h5D3qXu23JGRoigpX5Ss4r9ZnDk3g0Z8uQC2x2lPaJ+UlWBc1ZWBWdLg==",
+      "dev": true,
+      "engines": {
+        "node": ">=0.8"
+      }
+    },
     "node_modules/core-js": {
       "version": "3.32.0",
       "resolved": "https://registry.npmjs.org/core-js/-/core-js-3.32.0.tgz",
@@ -4294,6 +4304,21 @@
         "url": "https://opencollective.com/vitest"
       }
     },
+    "node_modules/vite-plugin-rewrite-all": {
+      "version": "1.0.1",
+      "resolved": "https://registry.npmjs.org/vite-plugin-rewrite-all/-/vite-plugin-rewrite-all-1.0.1.tgz",
+      "integrity": "sha512-W0DAchC8ynuQH0lYLIu5/5+JGfYlUTRD8GGNtHFXRJX4FzzB9MajtqHBp26zq/ly9sDt5BqrfdT08rv3RbB0LQ==",
+      "dev": true,
+      "dependencies": {
+        "connect-history-api-fallback": "^1.6.0"
+      },
+      "engines": {
+        "node": ">=12.0.0"
+      },
+      "peerDependencies": {
+        "vite": "^2.0.0 || ^3.0.0 || ^4.0.0"
+      }
+    },
     "node_modules/vitest": {
       "version": "0.34.1",
       "resolved": "https://registry.npmjs.org/vitest/-/vitest-0.34.1.tgz",
diff --git a/ui/package.json b/ui/package.json
index 9c63a47eeb..5fa0a43806 100644
--- a/ui/package.json
+++ b/ui/package.json
@@ -66,6 +66,7 @@
     "prettier": "^3.0.1",
     "sass": "^1.64.2",
     "vite": "^4.4.9",
+    "vite-plugin-rewrite-all": "^1.0.1",
     "vitest": "^0.34.1"
   }
 }
diff --git a/ui/vite.config.js b/ui/vite.config.js
index 452e672a16..22fa83028f 100644
--- a/ui/vite.config.js
+++ b/ui/vite.config.js
@@ -1,6 +1,7 @@
 import path from "path";
 import {defineConfig} from "vite";
 import vue from "@vitejs/plugin-vue";
+import pluginRewriteAll from 'vite-plugin-rewrite-all';
 
 export default defineConfig({
     base: "",
@@ -14,6 +15,7 @@ export default defineConfig({
     },
     plugins: [
         vue(),
+        pluginRewriteAll()
     ],
     css: {
         devSourcemap: true


Test patch: