Can't reproduce on my side (either from Flow page or Revision tab 🤔). Do you have any steps to reproduce ? on the execution page, execute a flow, delete the flow and go back on the execution page of this deleted flow.  indeed

![image](https://github.com/kestra-io/kestra/assets/46634684/8c567b39-e21c-424e-a362-0442b75f57ce)
![image](https://github.com/kestra-io/kestra/assets/46634684/edf8af5c-33be-426a-9bcf-6f1a9e6b9b15)


Deleted flow led to a 404 on execution page
And it's seems that revision is not passed on call from this page
ui/src/stores/flow.js webserver/src/main/java/io/kestra/webserver/controllers/FlowController.java
ui/src/stores/flow.js webserver/src/main/java/io/kestra/webserver/controllers/FlowController.java
diff --git a/ui/src/stores/flow.js b/ui/src/stores/flow.js
index 334fd0f9a0..065bdc644d 100644
--- a/ui/src/stores/flow.js
+++ b/ui/src/stores/flow.js
@@ -52,6 +52,7 @@ export default {
         loadFlow({commit}, options) {
             return this.$http.get(`/api/v1/flows/${options.namespace}/${options.id}?source=true`,
                 {
+                    params: options,
                     validateStatus: (status) => {
                         return options.deleted ? status === 200 || status === 404 : status === 200;
                     }
diff --git a/webserver/src/main/java/io/kestra/webserver/controllers/FlowController.java b/webserver/src/main/java/io/kestra/webserver/controllers/FlowController.java
index eb4514ead5..301996e8fa 100644
--- a/webserver/src/main/java/io/kestra/webserver/controllers/FlowController.java
+++ b/webserver/src/main/java/io/kestra/webserver/controllers/FlowController.java
@@ -111,14 +111,15 @@ public FlowGraph flowGraphSource(
     public Flow index(
         @Parameter(description = "The flow namespace") @PathVariable String namespace,
         @Parameter(description = "The flow id") @PathVariable String id,
-        @Parameter(description = "Include the source code") @QueryValue(defaultValue = "false") boolean source
+        @Parameter(description = "Include the source code") @QueryValue(defaultValue = "false") boolean source,
+        @Parameter(description = "Get latest revision by default") @Nullable @QueryValue Integer revision
     ) {
         return source ?
             flowRepository
-                .findByIdWithSource(namespace, id)
+                .findByIdWithSource(namespace, id, Optional.ofNullable(revision))
                 .orElse(null) :
             flowRepository
-                .findById(namespace, id)
+                .findById(namespace, id, Optional.ofNullable(revision))
                 .orElse(null);
     }
 
