So, I am working on building my first Sharepoint App. The app has 2 pages. The first page is accessible by everyone, and the 2nd page is accessible to managers only. Users submit to HR prospective recruits. The first page stores the submission in a list in the host_web. When I load the 2nd page, I need to pull that data. Likewise, one of the first things I need to do is to get the current and host context. However, I don't seem to be able to do this on the 2nd page. It worked perfectly well on the first page. Page 2 always gets hung up here:
hostweburl = decodeURIComponent(getQueryStringParameter('SPHostUrl')); appweburl = decodeURIComponent(getQueryStringParameter('SPAppWebUrl'));How do I get this data into page 2?