Hi
I am trying to fetch url of single blog post using an icon button and code:
import wixLocation from ‘wix-location’;
$w.onReady(function () {
let url = wixLocation.url;
$w(“#iconButton1”).link = url;
});
but instead of fetching the whole url with path like this:
https://www.indiasportsreview.com/single-post/2018/02/20/Top-5-Indian-Medal-Hopes-for-Tokyo-Olympics-2020
it just gives me
https://www.indiasportsreview.com/single-post
I have also tried adding link to the button with this url:
yourdomain.com is available for purchase - Sedo.com
(as told by wix)
But this also doesn’t give me what I want. Is it a limitation of Wix?
Fluck Soomro
Wix code developer
falak.soomro786@gmail.com