Skip to content

Support deep linking for search parameters (e.g., ?search=ampc) #31

Description

@Anaskou

Hello AMRverse team,

I am trying to redirect users from my website directly to specific search results on the AMRrules Browser.

Currently, when I do a search on the site (e.g., for "ampc"), the URL correctly updates to https://browse.amrrules.org/?search=ampc. However, if I try to share that URL, bookmark it, or link to it externally, the site drops the ?search=ampc parameter and redirects back to the default homepage (https://browse.amrrules.org/).

It appears this happens because the underlying organism files need to be loaded into the browser session before a search parameter can be processed.

Feature Request:
Could you add deep linking support? Ideally, if a user navigates to a URL with a ?search= parameter:

  1. The site either auto-loads the default datasets and executes the search.
  2. OR, the site retains the URL parameter in the address bar, prompts the user to click "Load selected files," and then automatically executes the search based on the URL once the files are loaded.

Adding this feature would make it much easier for other tools and databases to link directly to specific rules and organisms in your browser! Thank you for your work on this great tool.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions