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

Shortening the url #333

Open
BasLee opened this issue Jan 16, 2025 · 1 comment
Open

Shortening the url #333

BasLee opened this issue Jan 16, 2025 · 1 comment

Comments

@BasLee
Copy link
Contributor

BasLee commented Jan 16, 2025

At the moment textannoviz contains url search params to persist the most important parts of its state. This allows for easy bookmarking and sharing of search and detail pages.

Example query (2432 chars).

The length of these urls makes sharing quite painful.

How to shorten urls?

  • params not interesting to bookmark/share can be moved to store/local storage
  • params that match the default query can be removed from the url, and from the base64 encoded query param
  • textannoviz can store the params remotely (and publicly): sharing can be done using an ID or hash (redis example)
  • textannoviz can add a button that copies a sharable link stripped of all state, keeping only the bare minimum:
    • detail page: tier2, highlight
    • search page: query, page, sorting, paging
@kintopp
Copy link
Member

kintopp commented Jan 16, 2025

See also #85

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

No branches or pull requests

2 participants