I'm writing an angular 1.5 app that is relying on a REST service. In some flows the service is asking the client for a redirect URL, attaches params to it and sends the URL to the user.
For most clients the service is using query params, hence when given:
it returns
But for the angular app, when given:
it returns
and that violates the app's routing.
It happens since according to RFC https://www.rfc-editor.org/rfc/rfc3986#section-4.1 everything that follows the # sign is considered the URL fragment and should be at the end of the URL.
I deduct that angular's query params are not exactly RFC legal, and are in fact some kind of "fragment params".
So what is the correct, generic way to build URL's that will be used by various client types: mobile, web, SPA etc. and still be RFC valid?