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

Further enhance what was done in #407 to make sure anchor is appended to url instead of overwriting it.

ping @masev