Merge pull request #608 from tiwariav/bugfix/4377/header_slider_btn_fix

Bugfix/4377 header slider btn fix
This commit is contained in:
Arvind Tiwari 2018-04-04 18:43:46 +05:30 committed by GitHub
commit a00ce7605b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 3 deletions

View file

@ -1,4 +1,5 @@
next:
* bgfix: [cms] header btn external link fix
* #4378: [dcl cms] update CMS Integration to have different content for different domains
1.6.2: 2018-04-01:
* bgfix: [dcl] Fix user activation email style; add/correct some DE text

View file

@ -113,10 +113,10 @@
} else if (href) {
var path = $(this).prop('href').split('#');
var currentPath = window.location.origin + window.location.pathname;
if (!path[1]) {
window.location = href;
} else if (currentPath == path[0]) {
if (currentPath == path[0] && path[1]) {
scrollToElement('#' + path[1]);
} else {
window.location = href;
}
}
});