Skip to content

Use request queries to save what ever filter is selected #36

@lil5

Description

@lil5

Steps to reproduce:

  1. Go to page https://fedidb.com/servers
  2. Use the filters
  3. Click on a server to get it’s overview page
  4. Then click the browser’s back button

Expectation:

I expect to go back to the page I was just at

What actually happened:

I return to /servers as I if I never selected a filter

Notes:

Had this website been written in htmx it would have worked better out of the box because it forces you to use web standards instead of depending on js for all state.

Nevertheless even with vuejs it is possible to apply url parameters as a search query (as http intended).

I propose that the browser history get overwritten (not pushed) to the search query selected. E.g. /servers/?q=search&sw=mastodon&sort=mau_desc&limit=50&p=1

url queries suggested:

  • q: search
  • sw: software
  • sort: sort type + asc vs desc
  • limit: page size only accepts a number and defaults to the higher option 3=10, 99=50 as max
  • p: page of selection.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions