Amended set-active-nav script to account for variable baseurl