Fiori -- Cross application navigation; Handling startup parameters?
<p>This question is related to:</p>

<ul>
<li><a href="https://stackoverflow.com/questions/27844715/fiori-cross-application-navigation">Fiori - Cross Application Navigation</a></li>
<li><a href="http://help.sap.com/saphelp_uiaddon10/helpdata/en/07/9561b716bb4f2f8ae4e47bacbdb86d/content.htm" rel="nofollow noreferrer">http://help.sap.com/saphelp_uiaddon10/helpdata/en/07/9561b716bb4f2f8ae4e47bacbdb86d/content.htm</a></li>
<li><a href="https://stackoverflow.com/questions/32922199/remove-url-params-on-routing">Remove URL params on routing</a></li>
</ul>

<p>My use case is like this:</p>

<p>I have multiple applications that should link to others (deep).
Since documentation of cross navigation mention to avoid deep links I decided to use a startup parameter.</p>

<p>For example:</p>

<p>Application A has a list of some items in the detail view of one item there is a reference to another application B that contains some other details.
Assume A shows article details and B shows some details of a producer of an article.</p>

<p>Application A would now use some navigation like this:</p>

<pre><code>sap.ushell.Container.getService("CrossApplicationNavigation").hrefForExternal({
  target : { semanticObject : "ApplicationB", action : "display" },
  params : { "someID" : "102343333"}
})
</code></pre>

<p>Now in application B I use code like this inside the Component.js at the end of the init method.</p>

<pre><code>var oRouter = that.getRouter().initialize();
var oComponentData = this.getComponentData();
if (oComponentData.startupParameters) {
    oRouter.navTo("SomeView", {
        someId : oComponentData.startupParameters.someID[0],
    }, false);
}
</code></pre>

<p>First question: Is this the right place for handling the startup parameters?</p>

<p>Second question: If I using the navigation the startup parameter will still be in the code, I would prefer to remove it, but how?</p>

<h2>Update</h2>

<p>In the target application (B) it would lead to the following URL:</p>

<pre><code>https://server/sap/bc/ui5_ui5/ui2/ushell/shells/abap/FioriLaunchpad.html?sap-client=100&amp;sap-language=EN#SemObject-display?someID=102343333&amp;/SomeView(102343333)/
</code></pre>

<p>Anyhow I would prefere to have something like this:</p>

<pre><code>https://server/sap/bc/ui5_ui5/ui2/ushell/shells/abap/FioriLaunchpad.html?sap-client=100&amp;sap-language=EN#SemObject-display?/SomeView(102343333)/
</code></pre>