How do I get the URL (specifically the parameters) into my Controller from a VF Page when the device is a mobile phone? The VF Page is housed on a Community Page. I can get the URL param just fine when on Desktop using: ApexPages.currentPage().getHeaders().get('referer'); But when I am using mobile (when UserInfo.getUiTheme() == 'Theme4t'), then this value is null.
The following solution only works for desktop with 1 parameter: ApexPages.currentPage().getHeaders().get('referer').substringAfter('?param=');
But I really need this to work for a mobile device.