summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--CHANGELOG.md5
-rw-r--r--assets/js/ga.js2
2 files changed, 5 insertions, 2 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index b825523..bd9e9d1 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -7,7 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [Unreleased](https://github.com/sergeyklay/gohugo-theme-ed/compare/v0.5.0...HEAD)
-### Todo
+### Fixed
+
+- Fix opening external links in new tab/window when use
+ Google Site Tag tagging/analytics framework
## [v0.5.0](https://github.com/sergeyklay/gohugo-theme-ed/compare/v0.4.0...v0.5.0)
diff --git a/assets/js/ga.js b/assets/js/ga.js
index b5b9186..f2c6cbe 100644
--- a/assets/js/ga.js
+++ b/assets/js/ga.js
@@ -86,7 +86,7 @@ function onClickCallback(event) {
// Track outbound link click
trackOutboundLink(
event.target,
- event.target.getAttribute('target') !== '_blank'
+ event.target.getAttribute('target') === '_blank'
);
}