def getPageHref(self):
        href = self.location.href
        if href.find("?"): href = href.split("?")[0]
        if href.find("#"): href = href.split("#")[0]
        return href
Return href with any search or hash stripped
dataset/ETHPy150Open pyjs/pyjs/pyjswidgets/pyjamas/Location.py/Location.getPageHref