on master help sign in
grants: permalinks jump down to view grants page
f2cfbd9Matilde Park
pages/grants.js+3
@@ -15,6 +15,7 @@ import {
15 getGrantsTypes,
15 getGrantsTypes,
16 getPostBySlug,
16 getPostBySlug,
17} from "../lib/lib";
17} from "../lib/lib";
18+import { useEffect } from "react";
18
19
19function isArray(arr) {
20function isArray(arr) {
20 return Array.isArray(arr);
21 return Array.isArray(arr);
@@ -33,10 +34,12 @@ export default function Grants({ posts, categories, types, search }) {
33 if (status === undefined) {
34 if (status === undefined) {
34 status = "open";
35 status = "open";
35 }
36 }
37+
36 function push(toQuery) {
38 function push(toQuery) {
37 router.push(
39 router.push(
38 {
40 {
39 pathname: "/grants",
41 pathname: "/grants",
42+ hash: "view-grants",
40 query: toQuery,
43 query: toQuery,
41 },
44 },
42 "",
45 "",