Skip to content

Node.js based forum software built for the modern web

changed input to meta

Baris Soner Usakli6f57e639f9de
diff --git a/public/src/app.js b/public/src/app.js
index b64a6dcf9b..a22b93749a 100644
--- a/public/src/app.js
+++ b/public/src/app.js
@@ -6,7 +6,7 @@ var socket,
// todo: cleanup,etc
(function() {
- RELATIVE_PATH = $('#relative_path').val();
+ RELATIVE_PATH = $('#relative_path').attr('value');
function loadConfig() {
diff --git a/public/templates/admin/header.tpl b/public/templates/admin/header.tpl
index dbb5f1b30a..a1f0fd7693 100644
--- a/public/templates/admin/header.tpl
+++ b/public/templates/admin/header.tpl
@@ -3,8 +3,7 @@
<head>
<title>NodeBB Administration Panel</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
-
- <input id="relative_path" type="hidden" template-variable="relative_path" value="{relative_path}" />
+ <meta id="relative_path" template-variable="relative_path" value="{relative_path}" />
<link id="base-theme" href="{cssSrc}" rel="stylesheet" media="screen">
<link href="{relative_path}/vendor/bootstrap/css/bootstrap-responsive.min.css" rel="stylesheet" media="screen">
<link rel="stylesheet" href="{relative_path}/vendor/fontawesome/css/font-awesome.min.css">
diff --git a/public/templates/header.tpl b/public/templates/header.tpl
index 1c13b2f0f2..54455b5929 100644
--- a/public/templates/header.tpl
+++ b/public/templates/header.tpl
@@ -9,7 +9,7 @@
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<meta name="apple-mobile-web-app-capable" content="yes" />
- <input id="relative_path" type="hidden" template-variable="relative_path" value="{relative_path}" />
+ <meta id="relative_path" template-variable="relative_path" value="{relative_path}" />
<link href="{cssSrc}" rel="stylesheet" media="screen">
<link href="{relative_path}/vendor/bootstrap/css/bootstrap-responsive.min.css" rel="stylesheet" media="screen">