Closed (fixed)
Project:
Views navigation
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
28 May 2013 at 19:32 UTC
Updated:
4 Jan 2014 at 03:28 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
gaëlgIf you want to submit a patch for this, I can help you.
What is needed:
*Add an option in the settings to activate the back button or not (default to no for backward compatibility).
* Create the link in views_navigation_get_links() if the option is checked, with
'href' => 'views_navigation/' . $cid . '/back'.* In views_navigation_store_query(), store the current path along with the query.
* In views_navigation_router(), if $pos=='back', get the cached query from the cid, and the path which has been stored along with it. Redirect to this path.
Comment #2
michael_otolorin commentedComment #3
michael_otolorin commentedComment #4
lunatic commentedhi,
here is a patch the adds the "back to view" functionality as described in #1
Comment #5
lunatic commentedThe previous patch fails to redirect when pager exists and user is leaving the view from a page other than the first. Also when there are exposed filters on the url.
This patch fixes it
Comment #6
gaëlgGreat, thank you! Committed to dev with little improvements.