Skip to content
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

Allow deep-linking #28

Closed
dcabo opened this issue Oct 6, 2019 · 2 comments
Closed

Allow deep-linking #28

dcabo opened this issue Oct 6, 2019 · 2 comments
Labels

Comments

@dcabo
Copy link
Member

dcabo commented Oct 6, 2019

We want to be able to link to one particular programme transcription (#20) but mostly to a particular search. This means we have to store the form state in the URL, and be able to initialize from it.

I haven't fully understood how this works in Vue.js, but seems to be related to the Vue Router. Some links:

@dcabo dcabo added the ui label Oct 6, 2019
dcabo added a commit that referenced this issue Oct 21, 2019
@dcabo
Copy link
Member Author

dcabo commented Oct 21, 2019

He añadido VueRouter para poder tener una estructura básica de la web, lo cual permite por ejemplo crear y enlazar a una transcripción de un programa completo (#20). Aún no he conseguido entender cómo guardar y recuperar el estado del formulario en la URL al hacer una búsqueda. 🤷‍♂

@dcabo
Copy link
Member Author

dcabo commented Oct 21, 2019

He conseguido guardar y leer la query en la URL. He usado vuex-router-sync y he hecho el router global. Seguramente me sobren piezas y no sea lo más elegante, pero funciona. Faltaría guardar también el rango de fechas, tal vez, pero esto era lo más importante, y la estructura está montada, sería luego extender.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant