Reputation: 1511
Like in title I am trying to set long string which is a token which I generate in my asp.net core web api to reset a password. It how it looks
'CfDJ8B6FVg53lAlFsw2pAgHLWhiy6LSLX+4rxJWBeeJBT9UOIt+zmYiQ7sbkPq3S0U8LEFIDgVLlOHMBhlWvUc0xhgVbkL0a/wGyd/eAVTpawnjWm/dKmrpvkgN7eJsDbFDA37zmdKr9hciHV/+0zMVxGqsV/G9tsMeyh1id4NGWP0iNg696jvEcAlylSwhs0d0NJTsYycscwRx6TpNGZIfgwuAjoGz9E5ymoh1ST1zERVHSuaWQzm4kFR5s5DCQdMfBIQ==
It is how i have define this route
{path:"resetPasswordForm/:code", component: ResetPasswordFormComponent}
It match such url
http://localhost:4200/#/resetPasswordForm/1 or http://localhost:4200/#/resetPasswordForm/sdfsdhfbjsbshdfbjsdf
but not such complicated string as my token is.
Upvotes: 1
Views: 3331
Reputation: 21698
In angular application URL, there is a limit in the length. You cannot append everything into the url
I got this Url limit error while passing some data as query string in the url. Then I have to limit the url and stored data in local store and pick that in the next page. You can do that in case its possible in your case.
you see more detail here
Upvotes: 1