DEV Community

Victor Porton
Victor Porton

Posted on

How to preserve a HTTP param during navigation?

I am creating a site. Every page of the site goes with canisterId=XXX GET param.

So, I want ReactBrowser's navigate() method as well as Link tags to preserve this GET param.

For example, <Link to="/bookmark"> should lead to /bookmark?canisterId=XXX rather that to /bookmark.

Is it possible at all? How to do it?

If not possible, I think, it would be a good idea to add this feature to React router, because it is quite useful for ICP blockchain frontend development.

Top comments (0)