locked
Using Query String Parameters while trying to navigate to a page on app compartment from web compartment

    Question

  • There is a need in my app for the web compartment to navigate to a page that resides on the app. Right now, I am doing it like this:

        window.location.replace("ms-appx://<pageurl>");

    To be able to do so, I had to explicitly allow this page to be navigable from outside by doing:

    MSApp.addPublicLocalApplicationUri("ms-appx://<pageurl>");

    I would like to use query string parameters when I do window.location.replace, like this:

        window.location.replace("ms-appx://<pageurl>/?q=what");

    In turn, this caused me to do a wildcard match in MSAPp.addPublicLocalApplicationURI like this:

    MSApp.addPublicLocalApplicationUri("ms-appx://<pageurl>/*");

    For some reason, the app is unable to resolve this uri. Is there some other way to use query string parameters, or is it something that is just not allowed?

    Tuesday, September 11, 2012 11:06 PM

Answers