Get Host Query String Parameters in the app
hi, guys
we have created app reading host query string parameters host web. query string parameters used document.referrer.
when have implemented on local environment working properly, have started get url (see below) referrer. understand trying do. question how else can differently?
https://somesharepointdev.sharepoint.com/_layouts/15/silentsignin.aspx?redirect_uri=https%3a%2f%2fsomesharepointdev%2dddc15e941795a5%2esharepoint%2ecom%2fpublishingpagelayouts%2f%5flayouts%2f15%2fsilentsignin%2easpx%3fredirect%5furi%3dhttps%253a%252f%252fsomesharepointdev%252dddc15e941795a5%252esharepoint%252ecom%252fpublishingpagelayouts%252fpages%252fpublishingpagelayouts%252easpx%253fsphosturl%253dhttps%25253a%25252f%25252fsomesharepointdev%25252esharepoint%25252ecom%2526sphosttitle%253dhome%2526spappweburl%253dhttps%25253a%25252f%25252fsomesharepointdev%25252dddc15e941795a5%25252esharepoint%25252ecom%25252fpublishingpagelayouts%2526splanguage%253den%25252dus%2526spclienttag%253d0%2526spproductnumber%253d16%25252e0%25252e1922%25252e1216%2526pagesiteurl%253dhttps%25253a%25252f%25252fsomesharepointdev%25252esharepoint%25252ecom%25252fsites%25252findigopub%2526senderid%253df65b09b90
thanks pavel! think understood issue now.
as app lives inside iframe bit tricky access url of host web. can try pass properties app part defining then from client web part. way added app url , can them directly. tutorial can you, doesn't resolve issue directly uses properties mentioned before:
http://msdn.microsoft.com/en-us/library/office/fp179921.aspx
i hope helps!
software developer engineer @ visual studio tools office
SharePoint , Apps for Office and SharePoint > Developing Apps for SharePoint 2013
Comments
Post a Comment