HugoBlox / hugo-blox-builder

🚨 GROW YOUR AUDIENCE WITH HUGOBLOX! 🚀 HugoBlox is an easy, fast no-code website builder for researchers, entrepreneurs, data scientists, and developers. Build stunning sites in minutes. 适合研究人员、企业家、数据科学家和开发者的简单快速无代码网站构建器。用拖放功能、可定制模板和内置SEO工具快速创建精美网站!
https://hugoblox.com/templates/
MIT License
8.19k stars 2.9k forks source link

External links open both in current tab and new tab when `google_analytics` enabled #1511

Closed statnmap closed 4 years ago

statnmap commented 4 years ago

Describe the bug

When I click on "View Demo" on the website https://sourcethemes.com/academic/ this opens a new tab but also updates the tab I was in. image

This is not the case when clicking on "View documentation" in the demo page: https://academic-demo.netlify.com/ image

I face the same behavior as sourcethemes.com on my website.

To Reproduce

Steps to reproduce the behavior:

  1. Go to https://sourcethemes.com/academic/
  2. Click on "View Demo"
  3. See new tab opened and previous tab updated

I have seen the same behavior for some links in the documentation. If I do a Ctrl+Click on links like: "HTML color name" in this paragraph: https://sourcethemes.com/academic/docs/page-builder/#background

Expected behavior

The current tab should not be updated.

Technical details:

gcushen commented 4 years ago

I can't yet reproduce the issue locally.

However, the live https://sourcethemes.com/academic/ site appears to have this issue in both Firefox and Chrome. With Safari, it has a different behaviour of just changing the current tab without opening a new tab.