Quantcast
Channel: SharePoint 2013 - Development and Programming forum
Viewing all articles
Browse latest Browse all 7589

How to get Friendly Url via Javascript in a sharePoint - if page is accessed via full url

$
0
0

Hi All,

I have a CSWP which is configured to pass the {Term.Name} to get some result, it works fine if I access the page via Friendly Url but if I access the Page via full url it does not result any result. and The reason I am assuming is because the {Term.Name} is empty if you access the page via full URL.

Question 1 : Is there any easy way to fix this Issue, so CSWP will get the {Term.Name} even if user access via Full URL

Question 2: If there way to get the Friendly URL of page, via JavaScript, so I can redirect the user with friendly url if user access the page via full url?

Thanks,


Sudhir rawat


Viewing all articles
Browse latest Browse all 7589

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>