I would like to be sure why the browser treats long URLs differently depending on how they were executed. What exactly do I mean:
In my app I have a link to some view which could has a very long URL. That link can be much longer than 2000 characters and I know that it can not work in different browsers (source). But when we go to that link, by clicking in the app, everything works and browser does not return any error. However, when we then copy that link and we paste in new tab, then browser returns 431 Request header fields too large
error. I wish to know why it happens. Maybe it's related to framework nextjs which I use? I tested that on Chrome and Firefox.