LPS-44862  "Link to Page" field's getUrl method doesn't work properly

Hi Marcellus,

you are already familiar with this fix, I've expanded it with some tests.
I've asked @matethurzo  to review the staging part.

Tamás