How do I pass a parameter from a Page to a Form?

I am trying to get a parameter passed from a static page to a form on the desk.
e.g A user clicks on a link domain.tld/desk#Form/form_name/new_form?name=value
when the form loads I want to get the value of the name parameter.
I tried getting it with window.location.href but the form reloads immediately after loading and strips away the parameter.

How do I get the parameter?