title: Deep link from external to specific route angular2 app
body: <p>I need to create a deep link that allows user to click it from external (like e-mail or browser directly) and then it should be redirect to <code>my-app.blablabla.com://path-to-route</code>. I've already created a working deep link but it always redirect the user in my app homepage (like <code>my-app.blablabla.com://</code>). There is a way to pass the route-path with a deep link? Thanks in advance.</p>
  
  <p>PS: I've also tried to catch up the referrer in app.component.ts but it's always = "".</p>
  
  <p>PPS: the <code>path-to-route</code> is not considered at all. The application open in homepage if it is present or not.</p>
  
  <p>I'm using angular2 and cordova.</p>
  
  <p>This is cordova config:</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;?xml version='1.0' encoding='utf-8'?&gt;
  &lt;widget android-versionCode="20405" android-versionName="2.04.05" id="my-app.blablabla.com" ios-CFBundleShortVersion="20405" ios-CFBundleVersion="2.04.05" version="20405" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0"&gt;
      &lt;name&gt;Myapp&lt;/name&gt;
      &lt;description&gt;
          My app
      &lt;/description&gt;
      &lt;author email="luca.taccagni@hotmail.it" href="http://www.myapp.it"&gt;
          Luca Taccagni
      &lt;/author&gt;
      &lt;content src="index.html" /&gt;
      &lt;preference name="DisallowOverscroll" value="true" /&gt;
      &lt;preference name="BackupWebStorage" value="local" /&gt;
      &lt;preference name="permissions" value="none" /&gt;
      &lt;preference name="orientation" value="portrait" /&gt;
      &lt;preference name="target-device" value="universal" /&gt;
      &lt;preference name="fullscreen" value="true" /&gt;
      &lt;preference name="android-windowSoftInputMode" value="stateVisible|adjustResize" /&gt;
      &lt;preference name="webviewbounce" value="true" /&gt;
      &lt;preference name="prerendered-icon" value="true" /&gt;
      &lt;preference name="stay-in-webview" value="false" /&gt;
      &lt;preference name="detect-data-types" value="true" /&gt;
      &lt;preference name="exit-on-suspend" value="false" /&gt;
      &lt;preference name="show-splash-screen-spinner" value="true" /&gt;
      &lt;preference name="disable-cursor" value="false" /&gt;
      &lt;preference name="android-minSdkVersion" value="14" /&gt;
      &lt;preference name="android-installLocation" value="auto" /&gt;
      &lt;preference name="SplashScreen" value="resources/browser/screen/Default-Portrait-736h@3x.png" /&gt;
      &lt;preference name="AutoHideSplashScreen" value="true" /&gt;
      &lt;preference name="SplashScreenDelay" value="3000" /&gt;
      &lt;platform name="browser"&gt;
          &lt;preference name="SplashScreen" value="res/browser/screen/Default-Portrait-736h@3x.png" /&gt;
          &lt;preference name="SplashScreenDelay" value="5000" /&gt;
          &lt;preference name="SplashScreenBackgroundColor" value="green" /&gt;
          &lt;preference name="ShowSplashScreen" value="true" /&gt;
          &lt;preference name="SplashScreenWidth" value="600" /&gt;
          &lt;preference name="SplashScreenHeight" value="300" /&gt;
      &lt;/platform&gt;
      &lt;platform name="ios"&gt;
      &lt;/platform&gt;
      &lt;platform name="android"&gt;
          &lt;icon density="mdpi" src="www/res/icon/android/icon-48-mdpi.png" /&gt;
          &lt;icon density="hdpi" src="www/res/icon/android/icon-72-hdpi.png" /&gt;
          &lt;icon density="xhdpi" src="www/res/icon/android/icon-96-xhdpi.png" /&gt;
          &lt;splash density="port-hdpi" src="www/res/screen/android/screen-hdpi-portrait.png" /&gt;
          &lt;splash density="port-mdpi" src="www/res/screen/android/screen-mdpi-portrait.png" /&gt;
          &lt;splash density="port-xhdpi" src="www/res/screen/android/screen-xhdpi-portrait.png" /&gt;
      &lt;/platform&gt;
      &lt;feature name="SplashScreen"&gt;
          &lt;param name="ios-package" value="CDVSplashScreen" /&gt;
          &lt;param name="onload" value="true" /&gt;
      &lt;/feature&gt;
      &lt;universal-links&gt;
          &lt;host name="abc123.app.goo.gl" scheme="https" /&gt;
          &lt;host name="myapp.firebaseapp.com" scheme="https"&gt;
              &lt;path url="/__/auth/callback" /&gt;
          &lt;/host&gt;
      &lt;/universal-links&gt;
      &lt;access origin="*" /&gt;
      &lt;allow-intent href="http://*/*" /&gt;
      &lt;allow-intent href="https://*/*" /&gt;
      &lt;allow-intent href="tel:*" /&gt;
      &lt;allow-intent href="sms:*" /&gt;
      &lt;allow-intent href="mailto:*" /&gt;
      &lt;allow-intent href="data:*" /&gt;
      &lt;allow-intent href="geo:*" /&gt;
      &lt;allow-navigation href="about:blank" /&gt;
      &lt;allow-navigation href="https://myapps.bla.it/*" /&gt;
      &lt;allow-navigation href="http://myapps.bla.it/*" /&gt;
      &lt;platform name="android"&gt;
          &lt;allow-intent href="market:*" /&gt;
      &lt;/platform&gt;
      &lt;platform name="ios"&gt;
          &lt;hook src="hooks/buildApp.js" type="before_prepare" /&gt;
          &lt;preference name="DisallowOverscroll" value="true" /&gt;
          &lt;allow-intent href="itms:*" /&gt;
          &lt;allow-intent href="itms-apps:*" /&gt;
      &lt;/platform&gt;
      &lt;engine name="android" spec="^6.2.3" /&gt;
      &lt;plugin name="cordova-plugin-browsertab" spec="^0.2.0" /&gt;
      &lt;plugin name="cordova-plugin-buildinfo" spec="^2.0.1" /&gt;
      &lt;plugin name="cordova-plugin-customurlscheme" spec="^4.3.0"&gt;
          &lt;variable name="URL_SCHEME" value="my-app.blablabla.com" /&gt;
          &lt;variable name="ANDROID_SCHEME" value="https" /&gt;
          &lt;variable name="ANDROID_HOST" value="my-app.blablabla.com" /&gt;
          &lt;variable name="ANDROID_PATHPREFIX" value="/" /&gt;
          &lt;!-- already tried to put something here --&gt;
      &lt;/plugin&gt;
      &lt;plugin name="cordova-plugin-inappbrowser" spec="^1.7.1" /&gt;
      &lt;plugin name="cordova-plugin-ios-safari" spec="git+https://github.com/morungos/cordova-plugin-ios-safari.git" /&gt;
      &lt;plugin name="cordova-plugin-whitelist" spec="^1.3.3" /&gt;
      &lt;plugin name="cordova-universal-links-plugin" spec="^1.2.1" /&gt;
  &lt;/widget&gt;</code></pre>
  </div>
  </div>
  </p>