You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have read the console error message carefully (if applicable).
Description
When using Algolia search, if a user selects an anchor link (links that show # or ≡) in the search modal, the modal is displayed again when the user enters a keyboard shortcut (⌘ + F on macOS; Ctrl + F on Windows) to use the browser's "Find" function. The issue doesn't occur when selecting a link to a page without an anchor (pages with the page icon).
Note
We are currently on Docusaurus 3.2.1 in production and want to upgrade to Docusaurus 3.4.0, which fixes #10162 that we had encountered. But we have halted upgrading for now because both 3.2.1 and 3.4.0 have different issues related to the Algolia search modal, which is why I don't have an environment for this. However, this issue can be reproduced on the latest version (3.4.0) of the Docusaurus docs site, as shown in the video below. (Sorry for the low-quality video; GitHub requires videos to be 10 MB or less.)
In addition, when the user presses ⌘ + F on macOS; Ctrl + F on Windows, an f is added to the search, which causes f to appear as a keyword that has been searched for in the Algolia dashboard.
Reproducible demo
See attached video.
Steps to reproduce
Select the Algolia search bar. When the modal opens, enter a search phrase.
Select an anchor link (# or ≡) to navigate to that page.
On that page, press ⌘ + F on macOS or Ctrl + F on Windows. The page will open the Algolia search modal instead of the browser's "Find" function and add an f to the search.
Close the modal.
Press ⌘ + F on macOS or Ctrl + F on Windows again. The page will open the browser's "Find" function as expected.
Expected behavior
After selecting an anchor link (links that show # or ≡) in the search modal, pressing ⌘ + F on macOS or Ctrl + F on Windows should display the browser's "Find" function instead of the Algolia modal.
Actual behavior
After selecting an anchor link (links that show # or ≡) in the search modal, the modal is displayed again when the user uses the browser's "Find" function (⌘ + F on macOS; Ctrl + F on Windows).
Have you read the Contributing Guidelines on issues?
Prerequisites
npm run clearoryarn clearcommand.rm -rf node_modules yarn.lock package-lock.jsonand re-installing packages.Description
When using Algolia search, if a user selects an anchor link (links that show
#or≡) in the search modal, the modal is displayed again when the user enters a keyboard shortcut (⌘ + Fon macOS;Ctrl + Fon Windows) to use the browser's "Find" function. The issue doesn't occur when selecting a link to a page without an anchor (pages with the page icon).Note
We are currently on Docusaurus 3.2.1 in production and want to upgrade to Docusaurus 3.4.0, which fixes #10162 that we had encountered. But we have halted upgrading for now because both 3.2.1 and 3.4.0 have different issues related to the Algolia search modal, which is why I don't have an environment for this. However, this issue can be reproduced on the latest version (3.4.0) of the Docusaurus docs site, as shown in the video below. (Sorry for the low-quality video; GitHub requires videos to be 10 MB or less.)
docusaurus-algolia-search-find-function-bug-480p.mov
In addition, when the user presses
⌘ + Fon macOS;Ctrl + Fon Windows, anfis added to the search, which causesfto appear as a keyword that has been searched for in the Algolia dashboard.Reproducible demo
See attached video.
Steps to reproduce
#or≡) to navigate to that page.⌘ + Fon macOS orCtrl + Fon Windows. The page will open the Algolia search modal instead of the browser's "Find" function and add anfto the search.⌘ + Fon macOS orCtrl + Fon Windows again. The page will open the browser's "Find" function as expected.Expected behavior
After selecting an anchor link (links that show
#or≡) in the search modal, pressing⌘ + Fon macOS orCtrl + Fon Windows should display the browser's "Find" function instead of the Algolia modal.Actual behavior
After selecting an anchor link (links that show
#or≡) in the search modal, the modal is displayed again when the user uses the browser's "Find" function (⌘ + Fon macOS;Ctrl + Fon Windows).Your environment
Self-service