You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Platform/Target and Browser Versions: macOS Sierra, Chrome 57
What you did
My server enforces that pathnames end in a forward-slash "/"
Expected Behavior
Swiper to set the first slide based on the current pathname
Actual Behavior
The first slide is always shown, even if we're using a deep link
Looks like a potential bug in getPathValues:
function() {
var pathArray = window.location.pathname.slice(1).split('/');
var total = pathArray.length;
var key = pathArray[total - 2];
var value = pathArray[total - 1];
return { key: key, value: value };
}
This fails if the path ends in a forward slash.
The text was updated successfully, but these errors were encountered:
This is a (multiple allowed):
bug
enhancement
feature-discussion (RFC)
Swiper Version: 3.4.2
Platform/Target and Browser Versions: macOS Sierra, Chrome 57
What you did
My server enforces that pathnames end in a forward-slash "/"
Expected Behavior
Swiper to set the first slide based on the current pathname
Actual Behavior
The first slide is always shown, even if we're using a deep link
Looks like a potential bug in
getPathValues:
This fails if the path ends in a forward slash.
The text was updated successfully, but these errors were encountered: