Angular2 router keep query string

前端 未结 9 1754
栀梦
栀梦 2020-11-29 01:52

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:

9条回答
  •  日久生厌
    2020-11-29 02:06

    capture the original url in -base href-

    https://example.com/order?id=123

    then it will presist

    https://example.com/order?id=123#/product

提交回复
热议问题