def METHOD_NAME(self, event) -> None:
    task = self.wt_selector.task
    url = "/w%d/t%d" % (task.pos[0], task.pos[1])
    code = f"window.open('{url}')" if self.new_tab.value else f"window.location.href='{url}'"
    self.js_panel.execute_js(code)