Shorten clients URL
For now we put as URL parameters all the attributes that permit to recreate the tab as-is. On some tab the number of parameters can generate a very long URL. I think there are some ways to shorten them without loosing any feature: - [ ] use action id instead of domain, tab_domain and name when it is possible - [ ] use a list of fixed positioned value instead of named mapping (a list add about 2 chars per items and a JSON object at lest 4 chars) - [ ] use 0 instead of null for empty value - [ ] remove trailing empty values (so we should order in such way that last elements are often empty) - [ ] JSONify the list - [ ] strip the `[` and `]` of the array - [ ] encode into base64 (to avoid to escape many JSON structure chars like the bracket, quote etc. - [ ] strip the trailing `=` for padding of base64 - [ ] `encodeURIComponent` in case Ex: I tested for the sales URL (with tab domain etc.) - Current: 611 - With a list: 434 - With unordered list and action id: 32 - With ordered list and action id: 4
issue