ajah / sks-interface

0 stars 0 forks source link

Fix the "Back to results" button #1

Closed dani-ajah closed 2 years ago

dani-ajah commented 2 years ago

As a user of the platform, the "back to results" button found in the activity and organizations pages must redirect to the original result page, regardless of where this button is clicked from (i.e. a new tab).

jfnb commented 2 years ago

On /activity/ and /entities/ pages: The application retain the parameters of the original search query they used to access the page, and when a user clicks the back to results button, they should be redirected to the original search query on the /results/ page. This should include pagination when implemented (ie the user should be taken to the same page of results).

Note: this should function as described regardless of "where" the user clicks the button (IE if the result was opened in a new tab/window by the user).

dani-ajah commented 2 years ago

To facilitate this, we can go ahead and change the function of the links on the activity or organization pages. Currently, when you click on a link from an activity or organization page the corresponding page opens in a new tab. We can remove the new tab function to facilitate the back-to-results button process.

brittwitham commented 2 years ago

@hjweinreb continue working on this (keeping queries on top of search bar when navigating around the site)