Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

升级到 3.0.8,Taro.navigateTo 不能跳转到外部url了 #7428

Closed
zhiyu opened this issue Aug 24, 2020 · 1 comment
Closed

升级到 3.0.8,Taro.navigateTo 不能跳转到外部url了 #7428

zhiyu opened this issue Aug 24, 2020 · 1 comment
Labels
T-h5 Target - 编译到 H5 V-3 Version - 3.x

Comments

@zhiyu
Copy link

zhiyu commented Aug 24, 2020

相关平台

H5

浏览器版本: Chrome
使用框架: Nerv

复现步骤

Taro.navigateTo({
url:"http://baidu.com"
})

h5模式下,浏览器不能跳转外部url

期望结果

Taro.navigateTo 跳转到外部url

实际结果

Taro.navigateTo 不能跳转到外部url

环境信息

👽 Taro v3.0.8


  Taro CLI 3.0.8 environment info:
    System:
      OS: macOS 10.15.5
      Shell: 3.2.57 - /bin/bash
    Binaries:
      Node: 10.17.0 - ~/.nvm/versions/node/v10.17.0/bin/node
      Yarn: 1.16.0 - /usr/local/bin/yarn
      npm: 6.14.7 - ~/.nvm/versions/node/v10.17.0/bin/npm
    npmPackages:
      @tarojs/cli: 3.0.8 => 3.0.8 
      @tarojs/components: 3.0.8 => 3.0.8 
      @tarojs/mini-runner: 3.0.8 => 3.0.8 
      @tarojs/router: 3.0.8 => 3.0.8 
      @tarojs/runtime: 3.0.8 => 3.0.8 
      @tarojs/taro: 3.0.8 => 3.0.8 
      @tarojs/webpack-runner: 3.0.8 => 3.0.8 
      babel-preset-taro: 3.0.8 => 3.0.8 
      eslint-config-taro: 3.0.8 => 3.0.8 
      nervjs: ^1.5.0 => 1.5.7 
      taro-ui: ^3.0.0-alpha.3 => 3.0.0-alpha.3 
@taro-bot2 taro-bot2 bot added F-nerv T-h5 Target - 编译到 H5 V-3 Version - 3.x labels Aug 24, 2020
@zhiyu zhiyu changed the title 升级到 3.0.7,Taro.navigateTo 不能跳转到外部url了 升级到 3.0.8,Taro.navigateTo 不能跳转到外部url了 Aug 24, 2020
@luckyadam
Copy link
Member

一直不行吧,跳转外部链接用 window.open 或者 location.href 呗

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
T-h5 Target - 编译到 H5 V-3 Version - 3.x
Projects
Archived in project
Development

No branches or pull requests

3 participants