Skip to content

Bugs with hashed routing and linking to a specific filter from a different page #5654

Answered by Haroenv
JohnMica asked this question in Ideas
Discussion options

You must be logged in to vote

What would solve your use-case is likely changing the parseURL to read from "search inside hash" rather than from location.search

const routing = computed(() => {
  return {
    router: historyRouter({
      parseURL({ qsModule, location }) {
        return qsModule.parse(location.hash.split("?")[1]), {
          arrayLimit: 99,
        });
      },
    }),
    stateMapping: singleIndexMapping(indexName.value),
  };
});

Replies: 1 comment 11 replies

Comment options

You must be logged in to vote
11 replies
@JohnMica
Comment options

@Haroenv
Comment options

@JohnMica
Comment options

@Haroenv
Comment options

Answer selected by JohnMica
@JohnMica
Comment options

@Haroenv
Comment options

@JohnMica
Comment options

@JohnMica
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Ideas
Labels
None yet
2 participants