Open 5im-0n opened 4 years ago
Thanks! Any chance you can add a test?
No sorry, I don't have mocha skills and no interest in learning yet an other testing framework. I hope the existing passing mocha tests are enough.
Unfortunately there's been issues in the past where a fix with no test broke another case that also was untested. So we've made it a policy to only merge pull requests with tests, to prevent regressions.
Seems a good policy. I just don't have any mocha skills 🤷♂️
When
hashbang
istrue
, urls like http://localhost/?foo=bar got redirected to http://localhost/?foo=bar#!?foo=bar. This duplicated the query string and made the url ugly. This commit fixed this problem by making urls like http://localhost/?foo=bar redirect to http://localhost/#!?foo=barI made some nightwatch tests to make sure all use cases are covered. The tests can be found here: https://github.com/S2-/page.js-nightwatch-test
All urls work as expected: