Skip to content
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.

Query Strings in combination with angular universal / disabled JS #397

Open
zanettin opened this issue Feb 12, 2016 · 3 comments
Open

Query Strings in combination with angular universal / disabled JS #397

zanettin opened this issue Feb 12, 2016 · 3 comments

Comments

@zanettin
Copy link

When I click on a routerLink

LINK:
<a [routerLink]=" ['./RouteParamsTest', { userId : '1919', lang : 'it', token : 'jwt' }] ">Route Params Test 2</a>

CONFIG:
{ path: '/route-params-test/:userId/:lang', component: RouteParamsTest, name: 'RouteParamsTest' }

with disabled JS, this URL gets called => http://localhost:3000/route-params-test/1919/it and the query string won't appear. With activated JS everything works as expected.

tested with angular-universal-preview 0.52.0 => https://github.com/angular/universal-starter

@zanettin
Copy link
Author

Seams to be an issue of angular universal => angular/universal#275

@zanettin
Copy link
Author

zanettin commented Mar 1, 2016

as @alexpods said, there's a issue in the core router while using query string params in combination with angular universal. explanation and code references can be found here =>angular/universal#275

@ganeshkbhat
Copy link

The query string seems to be working with the parent where query string shows up correctly without issues. But when it is child route then instead of ? the query string shows up as ; with or without route params. The query strings are identified and assignable. http://stackoverflow.com/questions/35691663/child-url-query-params-shown-with-instead-of/35698213

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants