The links created on the main "Layer" page in the UI do not include the workspace prefixes. Due to this we experienced issues with having different layers with the same name but in different workspaces. Each of the links will open the same layer (in our case the alphabetically first workspace, but that could be coincidence).
Create two workspaces and a layer in each using the same name, e.g. one:myLayer and two:myLayer. Go to the "Layer" page from the menu and click on both links. They will both link to ".../geoserver/web/?wicket:bookmarkablePage=:org.geoserver.web.data.resource.ResourceConfigurationPage&name=myLayer". They should link to "...&name=one:myLayer" and "....&two:myLayer".
Hack the URL to include the workspace prefix for the layer.