I tried to change to path/url for the Episerver User Interface.
I did this by search and replace in web.config and episerver.config.
It works fine to 99% but Root and Recycle bin in the Page tree in Edit mode does not work.
The link/Url looks fine when you hover with the mouse but as soon as you click on the link it breaks and try to find the page under the old URL.
How can i fix this?
Yes, you need to go into admin mode and edit the root and recycle bin page types and change the page template path to reflect your new URL to UI.