Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/editable form input names for search bar #1

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

albre40
Copy link

@albre40 albre40 commented Sep 24, 2024

Il y a des sites facultaires ainsi que d'autres sites dont la recherche dans le bandeau d'entête est brisé lorsque'on ne peut pas modifier le nom de l'input selon le site.

Exemples:
https://www.fss.ulaval.ca/notre-faculte/repertoire-du-personnel?q=alexandre
https://www.flsh.ulaval.ca/notre-faculte/repertoire-du-personnel?q=alexandre
https://www.obvia.ca/communaute?search-type=website&q=alexandre

Comportements désirés:
https://www.fss.ulaval.ca/notre-faculte/repertoire-du-personnel?nom=alexandre
https://www.flsh.ulaval.ca/notre-faculte/repertoire-du-personnel?nom=alexandre
https://www.obvia.ca/communaute?search-type=staff&title=alexandre

L'ajout principal est searchInput.name = radioInput.dataset.inputName; ainsi que les data-input-name="nom".
Le reste est du formatage automatique.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant