From 41c9ba4869320839b7dd9161bb160cd99d67ea3f Mon Sep 17 00:00:00 2001 From: Sean Yesmunt Date: Mon, 9 Mar 2020 14:33:58 -0400 Subject: [PATCH] fix links on homepage --- ui/page/home/view.jsx | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/ui/page/home/view.jsx b/ui/page/home/view.jsx index b09c13ebe..d54dc5a97 100644 --- a/ui/page/home/view.jsx +++ b/ui/page/home/view.jsx @@ -1,6 +1,7 @@ // @flow import * as ICONS from 'constants/icons'; import * as PAGES from 'constants/pages'; +import * as CS from 'constants/claim_search'; import React from 'react'; import moment from 'moment'; import Page from 'component/page'; @@ -113,7 +114,7 @@ function HomePage(props: Props) { rowData.push( { title: 'Top Content Last Week', - link: `/$/${PAGES.DISCOVER}?&type=top&time=week`, + link: `/$/${PAGES.DISCOVER}?${CS.ORDER_BY_KEY}=${CS.ORDER_BY_TOP}&${CS.FRESH_KEY}=${CS.FRESH_WEEK}`, options: { orderBy: ['effective_amount'], pageSize: 4, @@ -128,7 +129,9 @@ function HomePage(props: Props) { }, { title: '#HomePageCageMatch', - link: `/$/${PAGES.DISCOVER}?t=homepagecagematch&type=top&time=all`, + link: `/$/${PAGES.DISCOVER}?t=homepagecagematch&${CS.ORDER_BY_KEY}=${CS.ORDER_BY_TOP}&${CS.FRESH_KEY}=${ + CS.FRESH_ALL + }`, help: (