Skip to content

Node.js based forum software built for the modern web

#2434

barisusakli080c54d41411
diff --git a/public/language/en_GB/global.json b/public/language/en_GB/global.json
index 5f77009ca0..a373c7a4d3 100644
--- a/public/language/en_GB/global.json
+++ b/public/language/en_GB/global.json
@@ -4,9 +4,9 @@
"buttons.close": "Close",
"403.title": "Access Denied",
"403.message": "You seem to have stumbled upon a page that you do not have access to.",
- "403.login": "Perhaps you should <a href='/login'>try logging in</a>?",
+ "403.login": "Perhaps you should <a href='%1/login'>try logging in</a>?",
"404.title": "Not Found",
- "404.message": "You seem to have stumbled upon a page that does not exist. Return to the <a href='/'>home page</a>.",
+ "404.message": "You seem to have stumbled upon a page that does not exist. Return to the <a href='%1/'>home page</a>.",
"500.title": "Internal error.",
"500.message": "Oops! Looks like something went wrong!",
diff --git a/src/views/403.tpl b/src/views/403.tpl
index 818cfd7d53..8234c7558d 100644
--- a/src/views/403.tpl
+++ b/src/views/403.tpl
@@ -7,6 +7,6 @@
<!-- ENDIF error -->
<!-- IF !loggedIn -->
- <p>[[global:403.login]]</p>
+ <p>[[global:403.login, {relative_path}]]</p>
<!-- ENDIF !loggedIn -->
</div>
\ No newline at end of file
diff --git a/src/views/404.tpl b/src/views/404.tpl
index 5573720d0e..93b114716a 100644
--- a/src/views/404.tpl
+++ b/src/views/404.tpl
@@ -3,6 +3,6 @@
<!-- IF error -->
<p>{error}</p>
<!-- ELSE -->
- <p>[[global:404.message]]</p>
+ <p>[[global:404.message, {relative_path}]]</p>
<!-- ENDIF error -->
</div>
\ No newline at end of file