From c40a4119945290da5bd141a264c0c3955d30f8b0 Mon Sep 17 00:00:00 2001 From: Rosanny <rosanny.sihombing@hft-stuttgart.de> Date: Thu, 25 Mar 2021 09:48:09 +0100 Subject: [PATCH] fix broken links --- app.js | 6 +++--- views/DE/account/newInformation.pug | 2 +- views/DE/account/services.pug | 2 +- views/DE/account/updateInformation.pug | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/app.js b/app.js index e0c604ab..8ff8ef12 100644 --- a/app.js +++ b/app.js @@ -69,14 +69,14 @@ app.use(function(req, res, next) { require('./routes/routes-account')(app, config, passport, i18n); // Handle 404 -app.use(function (req, res, next) { - res.status(404).render('./DE/404') +app.use(function (req, res) { + res.status(404).render('DE/404') }) // Handle 500 - any server error app.use(function (err, req, res, next) { console.error(err.stack) - res.status(500).render('./DE/500', { + res.status(500).render('DE/500', { error: err }) }) diff --git a/views/DE/account/newInformation.pug b/views/DE/account/newInformation.pug index 8ec6aebd..179770cd 100644 --- a/views/DE/account/newInformation.pug +++ b/views/DE/account/newInformation.pug @@ -38,7 +38,7 @@ html(lang="de") nav(aria-label="breadcrumb") ol(class="breadcrumb") li(class="breadcrumb-item") - a(href="/account") Konto + a(href="/account/") Konto li(class="breadcrumb-item") a(href="/account/services") Projekte und Dienste li(class="breadcrumb-item active" aria-current="page") Neue Projektinformation diff --git a/views/DE/account/services.pug b/views/DE/account/services.pug index cd9e05e9..7d3b56aa 100644 --- a/views/DE/account/services.pug +++ b/views/DE/account/services.pug @@ -38,7 +38,7 @@ html(lang="de") nav(aria-label="breadcrumb") ol(class="breadcrumb") li(class="breadcrumb-item") - a(href="/account") Konto + a(href="/account/") Konto li(class="breadcrumb-item active" aria-current="page") Projekte und Dienste div(class="container") diff --git a/views/DE/account/updateInformation.pug b/views/DE/account/updateInformation.pug index b1bf17ae..d2a4fd15 100644 --- a/views/DE/account/updateInformation.pug +++ b/views/DE/account/updateInformation.pug @@ -38,7 +38,7 @@ html(lang="de") nav(aria-label="breadcrumb") ol(class="breadcrumb") li(class="breadcrumb-item") - a(href="/account") Konto + a(href="/account/") Konto li(class="breadcrumb-item") a(href="/account/services") Projekte und Dienste li(class="breadcrumb-item active" aria-current="page") Information aktualisieren -- GitLab