簡體   English   中英

流星-如何使用Flowrouter重定向到外部URL(例如http://www.google.com)

[英]Meteor - How to redirect to external urls(eg. http://www.google.com) using Flowrouter

我正在嘗試付款網關,並且想將用戶重定向到quickwallet提供的付款網址? 有什么辦法嗎? 類似於FlowRouter.go(url); 提前致謝。

FlowRouter不支持重定向到外部URL,您需要使用window.location.href重定向到外部路由:

window.location.href = 'https://google.com';

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM