How do I output the url from the smarty?

0 like 0 dislike
10 views
Hello, please tell me how to display the smarty tag from the url

image

In the tag {$detals_url} contains the reference to the current page,but it is not displayed

Although the example in this script,which is on the same page, everything is perfectly displayed

(function() {if (window.pluso)if (typeof window.pluso.start == "function") return;if (window.ifpluso==undefined) { window.ifpluso = 1;var d = document, s = d.createElement('script'), g = 'getElementsByTagName';s.type = 'text/javascript'; s.charset='UTF-8'; s.async = true;s.src = ('https:' == window.location.protocol ? 'https' : 'http')  + '://share.pluso.ru/pluso-like.js';var h=d[g]('body')[0];h.appendChild(s);}})();var pluso_div = querySelector('div.pluso');pluso_div.setAttribute('data-url', '{$details_url}', 'data-title', '{$listing.title}');
by | 10 views

1 Answer

0 like 0 dislike
what is displayed instead of the variable?
if {$details_url} look not wrapped the code in {literal}
by

Related questions

0 like 0 dislike
1 answer
0 like 0 dislike
1 answer
0 like 0 dislike
1 answer
0 like 0 dislike
1 answer
asked Sep 3, 2019 by viktorross
0 like 0 dislike
1 answer
asked Aug 9, 2019 by Eridani
110,608 questions
257,186 answers
0 comments
32,705 users