ACT-1641: make sure only the path part of the url gets rewritten

makes sure only the path part of the uri gets rewritten when opening the diagram viewer