New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable the possibility to go back #124

merged 2 commits into from Dec 6, 2018


None yet
3 participants

axelssonHakan commented Dec 5, 2018

The back button doesn't trigger a reload on its own?!


This comment has been minimized.

netlify bot commented Dec 5, 2018

Deploy preview for catwalk ready!

Built with commit e877210


hrigner approved these changes Dec 5, 2018

Nice! One minor thing, the param to reload is optional and default false, so using reload() would be enough.


This comment has been minimized.


axelssonHakan commented Dec 5, 2018

Ignore this for now - need to switch to window.location.replace since "baseURL" changes isn't allowed for history.pushState

window.history.replaceState({}, '', `${window.location.pathname}?engine_url=${encodeURI(newURL)}`);

This comment has been minimized.


peol Dec 5, 2018


Is there anything wrong with location.href = <url>? :)

This comment has been minimized.


axelssonHakan Dec 6, 2018


No or YES :-)
Using window.location.assigns makes it possible to mock that function and not trigger unexpected test behaviours

@axelssonHakan axelssonHakan merged commit 69e0387 into master Dec 6, 2018

3 checks passed

ci/circleci: build Your tests passed on CircleCI!
cla/verification CLA OK
deploy/netlify Deploy preview ready!

@axelssonHakan axelssonHakan deleted the enableBackButton branch Dec 6, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment