Skip to content

Commit acb0721

Browse files
feat(endpoint-files): add back link to file upload page
1 parent 14aa3e1 commit acb0721

File tree

1 file changed

+4
-0
lines changed
  • packages/endpoint-files/lib/controllers

1 file changed

+4
-0
lines changed

packages/endpoint-files/lib/controllers/form.js

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import path from "node:path";
12
import { validationResult } from "express-validator";
23
import { endpoint } from "../endpoint.js";
34

@@ -11,6 +12,9 @@ export const formController = {
1112

1213
if (scope.includes("create") || scope.includes("media")) {
1314
return response.render("file-form", {
15+
back: {
16+
href: path.dirname(request.baseUrl + request.path),
17+
},
1418
title: response.locals.__("files.upload.title"),
1519
});
1620
}

0 commit comments

Comments
 (0)