function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion

Link to Console

I need to open the console from an external link.

For example, this link(outside console) automatically redirects to the console:
<apex:page controller="VFPageNameController" action="{!GotoConsole}">
public class VFPageNameController {
    public VFPageNameController() {}

    public Pagereference GotoConsole() {
        PageReference pr = new PageReference('/console?id=' + ApexPages.currentPage().getParameters().get('id'););
        return pr;

after I'm redirected to the console, I want the tab of Account record with id 001000000000000 to open automatically. I'm unable to set the primary tab onload of console. Is there a way to do this?