我正在尝试创建一个Wix页面,该页面将重定向所有链接到它的用户到一个外部URL。
我尝试将下面的代码添加为“HTML Wix应用程序”,但它没有起作用。
<meta http-equiv="refresh" content="0; URL=http://www.my-new-url.com">
我正在尝试创建一个Wix页面,该页面将重定向所有链接到它的用户到一个外部URL。
我尝试将下面的代码添加为“HTML Wix应用程序”,但它没有起作用。
<meta http-equiv="refresh" content="0; URL=http://www.my-new-url.com">
我有一个类似的用例,并使用wix-location模块解决了它:
import wixLocation from 'wix-location';
$w.onReady(function () {
wixLocation.to("http://www.my-new-url.com");
})
<script type="text/javascript">
window.parent.location.href = "http://www.my-new-url.com"
</script>
import wixLocation from 'wix-location';
// ...
wixLocation.to("http://www.my-new-url.com");
<meta http-equiv="refresh" content="0; URL=http://www.my-new-url.com/" />
<script type="text/javascript">
window.location.href = "http://www.my-new-url.com"
</script>
试试这个:
<html>
<meta http-equiv="refresh" content="0; URL=http://www.my-new-url.com/" />
</html>
上述代码:
<script type="text/javascript">
window.parent.location.href = "http://www.my-new-url.com"
</script>
适用于我的Wix网站: https://www.lemon-sin.com.au/ 重定向到总监的领英账户