For the task I want to implement the URL in this form:
https://site.com/tab?file=12345#type where tab = tab in which I am, 12345 the file number that is open, #type name of the sub-tab where the file is located. If I use in routing ? accordingly, all subsequent parameters follow ampersands & . There is a URL of this type https://site.com/tab?file=12345&type=type . Which is logical, of course. Unfortunately, nowhere could I find information about the hash in the URL with parameters. Complicated by the fact that the hash here does not play the role of an anchor. Tell me, is such a URL possible using ui-router ?
https://site.com/tab/12345/type. If this is suitable, write, I will give the answer how to do it. - Stepan Kasyanenkolocation. In your case,location.hash//#typeandlocation.search //?file=12345. Of course, you have to manually parselocation.searchor use jQuery. - Stepan Kasyanenkoui-routeversion greater than 1.0.0, then you do not need to parse anything. In$transition$.params()will be{#:"type",file:"12345"}. - Stepan Kasyanenko