Skip to content

Searching the dataset while on a word page does nothing #83

@gnidan

Description

@gnidan

mi kepeken lipu Linku. mi lukin e nimi wan (sama nimi "akesi"). mi wile alasa e nimi ante. mi sitelen e nimi lon poki alasa. taso ala li kama. lipu li awen sama. sitelen mi li weka.

mi tawa weka tan lipu nimi la, sitelen alasa mi li lon... taso tenpo lili la ona li weka. lipu li weka e sitelen mi.

ni li pakala. mi sitelen e nimi alasa la, lipu o tawa e mi tawa lipu alasa. anu, lipu o awen e sitelen mi.

pona!


On the lipu Linku webapp, if you are viewing the page for a particular word, the search functionality effectively does not work.

The behavior appears as described via the following steps:

  1. Navigate to the homepage (https://linku.la).
    The webapp adds the query automatically https://linku.la/?q=.

  2. Click on a word, e.g. "akesi".
    The app navigates properly to https://linku.la/words/akesi?q=.

  3. Type something (e.g. "poki") in the search bar.
    Observe how the URL changes to https://linku.la/words/akesi?q=poki, but nothing else changes in the app. No navigation.

  4. Use the back button to navigate away from the word page and back to the search results.
    The app briefly navigates to the search results with the typed query, including the URL being correct https://linku.la/?q=poki.

  5. Wait a moment.
    The app redirects to the same page with the search query discarded. See the URL quickly change to https://linku.la/?q=.

Effectively, any search input gets discarded if you're already looking at a specific word. I would expect the search functionality to navigate away from the word route and bring me to the search results automatically, or at the very least, I would expect my search query to be preserved when I navigate away from the word page myself.

Thank you

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