I'm overriding both the "List" and "View" standard actions on a custom object X, with two visualforce pages "XListView" and "XDetailView". I'm overriding the tab of this object as well, with XListView. I'm using enhancedList on the XListView vf page. While testing I clicked on the X tab, it directed me to "https://c.cs8.visual.force.com/apex/XListView?save_new=1&sfdc.override=1". I have some test records in the listview and I clicked on one of them. This action directed me to the custom detail view of X (XDetailView visualforce page) but the URL is still the same, "https://c.cs8.visual.force.com/apex/XListView?save_new=1&sfdc.override=1". Due to this, if I refresh the detail page or open the parent record (from the detail page) and click on "Back", it's redirecting to the list view of X. Can anyone please help me here on getting "XDetailView" in the URL when I'm on the record detail page?
Thanks