1
Fork 0
- Replaced pushState with replaceState
- Fixed issue that caused problems navigating to album's favorites page
This commit is contained in:
stz184 2020-09-27 16:17:29 +03:00
parent 85a8dbedb0
commit df973c3992
2 changed files with 2 additions and 2 deletions

View File

@ -71,7 +71,7 @@ function AlbumPage({ match }) {
history.replaceState(
{},
'',
'/album/' + albumId + (onlyFavorites ? '/favorites' : '')
'/album/' + albumId + (newState ? '/favorites' : '')
)
}

View File

@ -83,7 +83,7 @@ class PhotosPage extends Component {
favoritesCheckboxClick(refetch) {
const onlyWithFavorites = !this.state.onlyWithFavorites
history.pushState(
history.replaceState(
{},
'',
'/photos' + (onlyWithFavorites ? '/favorites' : '')