Build good URL when there is a fragment
Output query during the loading