diff --git a/cfg/conf.sample.php b/cfg/conf.sample.php
index e2ba01a..06f403e 100644
--- a/cfg/conf.sample.php
+++ b/cfg/conf.sample.php
@@ -7,6 +7,10 @@
; (optional) set a project name to be displayed on the website
; name = "PrivateBin"
+; The full URL, with the domain name and directories that point to the PrivateBin files
+; This URL is essential to allow Opengraph images to be displayed on social networks
+; path = ""
+
; enable or disable the discussion feature, defaults to true
discussion = true
diff --git a/lib/Configuration.php b/lib/Configuration.php
index 89db37a..90134c1 100644
--- a/lib/Configuration.php
+++ b/lib/Configuration.php
@@ -38,6 +38,7 @@ class Configuration
private static $_defaults = array(
'main' => array(
'name' => 'PrivateBin',
+ 'path' => '',
'discussion' => true,
'opendiscussion' => false,
'password' => true,
diff --git a/lib/Controller.php b/lib/Controller.php
index 0c039f5..6b6769d 100644
--- a/lib/Controller.php
+++ b/lib/Controller.php
@@ -369,6 +369,7 @@ class Controller
$page = new View;
$page->assign('NAME', $this->_conf->getKey('name'));
+ $page->assign('PATH', I18n::_($this->_conf->getKey('path')));
$page->assign('ERROR', I18n::_($this->_error));
$page->assign('STATUS', I18n::_($this->_status));
$page->assign('VERSION', self::VERSION);
diff --git a/tpl/bootstrap.php b/tpl/bootstrap.php
index c06372e..899be8b 100644
--- a/tpl/bootstrap.php
+++ b/tpl/bootstrap.php
@@ -74,11 +74,11 @@ endif;
-
-
-
+
+
+
-
+
@@ -86,11 +86,11 @@ endif;
-
+
-
+