memcode
memcode copied to clipboard
Allow linking to search results
I have not yet looked into how the search currently works, but it would be great to be able to add a search query to the URL and thus link users to search results. This could be used to e.g. give (potential) new memcode users a quick overview of the available topics with one click.
I think this feature needs two parts:
- [ ] URL query parameters such as e.g. https://www.memcode.com/courses?query=java+for+beginners
- [ ] A way to easily generate the query url - maybe the URL could update when enter is pressed in the search field, or even live using
window.history.replaceState
(not sure if react router can replace state without a reload)
I agree, we got to have it, the way we already have /courses?categoryId=3&page=2
.
I think the new profile page achieves some of that functionality, e.g. now you can refer people to all of your English courses (memcode.com/users/1?categoryId=15). Still a todo though!