Fix EZP-21048: Change anchor handling to append to url