when building back link, separate page name and fragment to avoid ‘#’ being escaped