F
F
flafy42020-03-11 12:28:13
Angular
flafy4, 2020-03-11 12:28:13

How to force to ignore transition on the same route, in the presence of query parameters in angular?

I'm on a page /home, on this page I'm doing manipulations that change the url to /home?param1=value1&param2=value2. After these actions, for example, I accidentally click on the menu item on the page on which I am currently located, therefore all my query parameters are cleared and the url looks like this again /home.

Essence of the question: How can I make it so that when clicking on the same url on which we are now, the query parameters are not reset?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Anton Shvets, 2020-03-11
@flafy4

Look here
https://stackblitz.com/edit/angular-router-basic-e...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question