0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2026-01-03 12:42:41 +00:00
This commit is contained in:
Víctor Losada Hernández
2024-05-31 20:26:12 +02:00
parent 8efea112b4
commit 90b504d67d

View File

@@ -85,7 +85,7 @@ const BrewRenderer = (props)=>{
if (pageIdRegex.test(locationHash)) {
// Extract page number from the ID
const pageNumber = parseInt(locationHash.slice(2));
scrollToPage(pageNumber+1);
scrollToPage(pageNumber-1);
} else {
// Treat it as an element ID
const elementId = locationHash.slice(1); // Remove the leading '#'