Url of single blog post

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

If anyone want to see:
https://www.indiasportsreview.com/single-post/2018/02/20/Top-5-Indian-Medal-Hopes-for-Tokyo-Olympics-2020
It’s the red mail box button on the sidebar that I am talking about

Hey,
It seems like a problem on our end. We’re looking into it and we’ll keep you posted.

I have a problem with this too.

I’m still having that problem too.
Does anybody solve it ?

oh no I thought it would have been sorted out from wix by now. It has been quite long that I even forgot about it

Unfortunately not.

One thing that I had noticed was that at the first time that the blog post was opened, my code didn’t work, it brings https:///single-post

After that, if I press F5 and refresh the page, it works, and brings the right current URL

I am still seeing this problem as of today - pressing F5 ‘resolves’ the issue, but without it wixLocation.url returns only the domain.com/single-post .

Please advise