Closed littleStudent closed 7 years ago
Thanks for the issue! Make sure it satisfies this checklist. My human colleagues will appreciate it!
Here is what to expect next, and if anyone wants to comment, keep these things in mind.
Should be ?search=cats#/blog/
. The query needs to go first.
I am having problems with parseHash and stringParam together. I checked out the example app and changed the following.
parsePath
->parseHash
in line 30 + line 72, ul [] (List.map viewLink [ "/#/", "/#/blog/", "/#/blog/42", "/#/blog/37", "/#/blog/?search=cats" ])
The first 3 paths work without any problems. But
/#/blog/?search=cats
results in "Invalid URL". Am I missing something or is it a bug?here is the fork with these minimal changes https://github.com/littleStudent/url-parser
ADD: it seems like
document.location.search
is empty when using Hash. So is there even a way to use query strings?