bug fix for urls without pagename