Skip to content

Commit e8be9c7

Browse files
committed
- Fixed bug: direct URL links wouldn't work when using an active slide for page load alvarotrigo#1646
1 parent c1e7060 commit e8be9c7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

jquery.fullPage.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -733,7 +733,7 @@
733733
//if the slide won't be an starting point, the default will be the first one
734734
//the active section isn't the first one? Is not the first slide of the first section? Then we load that section/slide by default.
735735
if( startingSlide.length && ($(SECTION_ACTIVE_SEL).index(SECTION_SEL) !== 0 || ($(SECTION_ACTIVE_SEL).index(SECTION_SEL) === 0 && startingSlide.index() !== 0))){
736-
silentLandscapeScroll(startingSlide);
736+
silentLandscapeScroll(startingSlide, 'internal');
737737
}else{
738738
slides.eq(0).addClass(ACTIVE);
739739
}
@@ -1983,7 +1983,7 @@
19831983
}
19841984

19851985
//only changing the URL if the slides are in the current section (not for resize re-adjusting)
1986-
if(section.hasClass(ACTIVE)){
1986+
if(section.hasClass(ACTIVE) && !v.localIsResizing){
19871987
setState(v.slideIndex, v.slideAnchor, v.anchorLink, v.sectionIndex);
19881988
}
19891989

0 commit comments

Comments
 (0)