Skip to content

Add "Go to Hadith Number" navigation input field#154

Open
anaskex wants to merge 1 commit intosunnah-com:masterfrom
anaskex:add-search-hadith-number
Open

Add "Go to Hadith Number" navigation input field#154
anaskex wants to merge 1 commit intosunnah-com:masterfrom
anaskex:add-search-hadith-number

Conversation

@anaskex
Copy link

@anaskex anaskex commented Jan 28, 2026

This PR adds a new input field in the index view to allow users to jump directly to a specific Hadith number within a collection.

Closes #153

Changes:

  • Added field and button in the index search container
  • Added JavaScript function to navigate to /collectionName:hadithNumber
  • Accepts only numeric input, preventing invalid navigation
  • Cross-browser compatible; CSS ensures numeric input looks clean without spinners consistent with design

Benefits:

  • Improves usability for users browsing collections
  • Safe client-side only navigation, no database or server risk
  • Works on all modern browsers and mobile devices

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.

Add "Go to Hadith Number" input field to navigate collections

1 participant