Sample Code:
public PageReference redirect() {
String acctId = ApexPages.currentPage().getParameters().get(‘acc’);
PageReference pr = new PageReference(‘salesforce_url/console#%2F’ + accId);
return pr;
}