Add if statement check for base href.