Closed lixuanxian closed 4 years ago
Use window.localtion.href
window.location.href = 'https://gitgud.io/help?neo4jDesktopGraphAppRootPath=&neo4jDesktopGraphAppId=graphxr'
Use a tag
function openURL(url, target) { let a = document.createElement("a"); a.setAttribute("href", url); a.setAttribute("target", target); a.setAttribute("id", "openURL"); a.innerHTML = "openURL"; a.click(); } openURL('http://neo4jdesktopiconissues.code4demo.com?neo4jDesktopGraphAppRootPath=&neo4jDesktopGraphAppId=graphxr','_self')
Or
<a herf="http://neo4jdesktopiconissues.code4demo.com?neo4jDesktopGraphAppRootPath=&neo4jDesktopGraphAppId=graphxr" target="_self">Test Click redirect </a>
Our online app need redirect, but it is easy failed when access www.neo4j.com failed.
Steps
Use window.localtion.href
Use a tag
Or