2
我寫了一個視圖來生成一個oauth_token,通過模板語法將其嵌入鏈接以生成授權url。當我點擊頁面上的鏈接時,地址缺少oauth_token。但是,當我點擊源代碼中的鏈接時,它工作得很好,並將我帶到授權頁面。{{oauth_token}}在源代碼中顯示,但不在頁面上
這裏發生了什麼?
這是我與模板語法鏈接:
<a href="https://api.login.yahoo.com/oauth/v2/request_auth?oauth_token={{ request_token }}" onclick="javascript:void window.open('http://https://api.login.yahoo.com/oauth/v2/request_auth?oauth_token=','1377808978328','width=700,height=500,toolbar=0,menubar=0,location=0,status=1,scrollbars=1,resizable=1,left=0,top=0');return false;">Or use scoring and settings from your yahoo league!</a>
這裏是鏈接的樣子源:
<a href="https://api.login.yahoo.com/oauth/v2/request_auth?oauth_token=q2sasyz" onclick="javascript:void window.open('http://https://api.login.yahoo.com/oauth/v2/request_auth?oauth_token=','1377808978328','width=700,height=500,toolbar=0,menubar=0,location=0,status=1,scrollbars=1,resizable=1,left=0,top=0');return false;">Or use scoring and settings from your yahoo league!</a>
只是重申當我點擊來源鏈接我去上我需要去,但當我點擊頁面的鏈接,我收到一條消息,從鉻說:
Oops! Google Chrome could not find https
Did you mean: https://api.login.yahoo.com/oauth/v2/request_auth
感謝觀看
好抓!另外,正如我注意到的,當我在第二個鏈接之後放置標記時,它也會到達我想要的位置。感謝您的幫助 –