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

sublink无效 #12841

Closed
leohazy opened this issue Jun 22, 2020 · 4 comments · Fixed by #12842
Closed

sublink无效 #12841

leohazy opened this issue Jun 22, 2020 · 4 comments · Fixed by #12842
Labels
bug en This issue is in English

Comments

@leohazy
Copy link

leohazy commented Jun 22, 2020

Version

4.8.0

Steps to reproduce

1. sublink not work

the sublink cannot open ,but title link function well。such as the example in https://echarts.apache.org/examples/zh/editor.html?c=map-HK, sublink is not work,if change to link,function well,after this ,change to sublink again, sublink can work。

副标题链接无法打开,改成主标题链接则可以打开,此时再改为副标题链接则可以正常打开。

2. 'www.xxxx' link not work

in the case https://echarts.apache.org/examples/zh/editor.html?c=map-HK,set the sublink to <www.baidu.com>,the sublink refer to https://echarts.apache.org/examples/zh/undefined,change sublink to link, it refer to https://echarts.apache.org/examples/zh/www.baidu.com. if set the link to http://www.baidu.com,funtion well。

如果把上述例子中的链接改为<www.baidu.com>时,sublink改为link的时候仍然无法打开,会跳转到https://echarts.apache.org/examples/zh/www.baidu.com,但是改为http://www.baidu.com,则可以正常跳转

What is expected?

click sublink to jump to the specific link

What is actually happening?

jump to an undefined page

@echarts-bot
Copy link

echarts-bot bot commented Jun 22, 2020

Hi! We've received your issue and please be patient to get responded. 🎉
The average response time is expected to be within one day for weekdays.

In the meanwhile, please make sure that you have posted enough image to demo your request. You may also check out the API and chart option to get the answer.

If you don't get helped for a long time (over a week) or have an urgent question to ask, you may also send an email to dev@echarts.apache.org. Please attach the issue link if it's a technical questions.

If you are interested in the project, you may also subscribe our mail list.

Have a nice day! 🍵

@echarts-bot echarts-bot bot added bug en This issue is in English pending We are not sure about whether this is a bug/new feature. waiting-for: community labels Jun 22, 2020
@plainheart plainheart added difficulty: easy Issues that can be fixed more easily than the average. and removed pending We are not sure about whether this is a bug/new feature. labels Jun 22, 2020
@apache apache deleted a comment from echarts-bot bot Jun 22, 2020
@plainheart plainheart removed the difficulty: easy Issues that can be fixed more easily than the average. label Jun 22, 2020
@plainheart
Copy link
Member

plainheart commented Jun 22, 2020

It is indeed a bug that sublink does not work, but www.xxx may be not.
This feature uses window.open to open the links, if no protocol is specified for url, the browser will open it by current context path.

@leohazy
Copy link
Author

leohazy commented Jun 22, 2020

It is indeed a bug that sublink does not work, but www.xxx may be not.
This feature uses window.open to open the links, if no protocol is specified for url, the browser will open it by current context path.

got it ,thx! hope fix this sublink bug

@plainheart
Copy link
Member

Thanks for your reporting. It has been fixed in #12842.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug en This issue is in English
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants