Angular2 router keep query string
<p>I wrote an Angular2 (v2.0.1) application that makes use of the router. The website is loaded with several query string parameters, so the full URL initially looks like this:</p>

<pre><code>https://my.application.com/?param1=val1&amp;param2=val2&amp;param3=val3
</code></pre>

<p>In my route configuration, I have an entry which redirects an empty route:</p>

<pre><code>const appRoutes: Routes = [
    {
        path: '',
        redirectTo: '/comp1',
        pathMatch: 'full'
    },
    {
        path: 'comp1',
        component: FirstComponent
    },
    {
        path: 'comp2',
        component: SecondComponent
    }
];
</code></pre>

<p>My problem is, that after the app has been bootstrapped, the URL does not contain the query parameters anymore, instead it looks like this:</p>

<pre><code>https://my.application.com/comp1
</code></pre>

<p>Is there any way I can configure the router so that it keeps the initial query string when navigating?</p>

<p>Thank you<br>
Lukas</p>