Skip to content
This repository has been archived by the owner on Sep 7, 2020. It is now read-only.

Commit

Permalink
Fix annoying failure when hitting "back" button when you have hit an …
Browse files Browse the repository at this point in the history
…asset

poke @thangngoc89
  • Loading branch information
MoOx committed Feb 24, 2016
1 parent 04b73f2 commit a707561
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/PageContainer/component.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ export default class PageContainer extends Component {
// so we can assume it's something else than a know page (eg: an asset)
// Refreshing the page will it the appropriate resource.
if (isClient) {
window.location.reload()
window.location.href = window.location.href
}
else if (props.setPageNotFound) {
props.setPageNotFound(pageUrl)
Expand Down

1 comment on commit a707561

@thangngoc89
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Please sign in to comment.