Skip to content

Commit

Permalink
feat(endpoint-files): add back link to file upload page
Browse files Browse the repository at this point in the history
  • Loading branch information
paulrobertlloyd committed Apr 13, 2024
1 parent 14aa3e1 commit acb0721
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/endpoint-files/lib/controllers/form.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import path from "node:path";
import { validationResult } from "express-validator";
import { endpoint } from "../endpoint.js";

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

if (scope.includes("create") || scope.includes("media")) {
return response.render("file-form", {
back: {
href: path.dirname(request.baseUrl + request.path),
},
title: response.locals.__("files.upload.title"),
});
}
Expand Down

0 comments on commit acb0721

Please sign in to comment.