plonetheme.classic/master: * Add data-base-url attribute in body tag closes #2051

Rodrigo Ferreira de Souza <jenkins-z4DKO/[email protected]> Sat, 29 Jul 2017 14:30:49 -0700 (PDT)
Newsgroups gmane.comp.web.zope.plone.cvs
Message-ID <[email protected]>
Repository: plonetheme.classic
Branch: refs/heads/master
Date: 2017-07-21T15:56:02-03:00
Author: Rodrigo Ferreira de Souza (rodfersou) <[email protected]>
Commit: https://github.com/plone/plonetheme.classic/commit/4a0a07fc3d7d48a20e1efb2a1d38c61de4b644c9

* Add data-base-url attribute in body tag closes #2051
* Fix @@plone_lock_operations fixes #2061
* Review @@sharing fixes #2053

Files changed:
M CHANGES.txt
M plonetheme/classic/skins/classic_templates/main_template.pt

diff --git a/CHANGES.txt b/CHANGES.txt
index f60141f..47d9962 100644
--- a/CHANGES.txt
+++ b/CHANGES.txt
@@ -4,7 +4,9 @@ Changelog
 1.3.4 (unreleased)
 ------------------
 
-- Nothing changed yet.
+- Add data-base-url attribute in body tag.
+  Closes `issue 2051 <https://github.com/plone/Products.CMFPlone/issues/2051>`_
+  [rodfersou]
 
 
 1.3.3 (2014-01-28)
diff --git a/plonetheme/classic/skins/classic_templates/main_template.pt b/plonetheme/classic/skins/classic_templates/main_template.pt
index cb87ea7..6bd86ea 100644
--- a/plonetheme/classic/skins/classic_templates/main_template.pt
+++ b/plonetheme/classic/skins/classic_templates/main_template.pt
@@ -63,7 +63,9 @@
                     sr python:plone_view.have_portlets('plone.rightcolumn', view);
                     body_class python:plone_view.bodyClass(template, view);"
         tal:attributes="class body_class;
-                        dir python: isRTL and 'rtl' or 'ltr'">
+                        dir python: isRTL and 'rtl' or 'ltr';
+                        data-portal-url portal_url;
+                        data-base-url context/absolute_url">
     <div id="visual-portal-wrapper">
 
       <div id="portal-top" i18n:domain="plone">



------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot