Using custompage_view_tile with exposed filters causes URL to redirect to original Path stored in View breaking page
| Project: | Custom Page |
| Version: | 6.x-1.2 |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
When I create a custompage and embed a view using the custompage_view_tile() function, if the view has any "exposed" filters, when the user clicks "apply" it redirects the page to the original Path stored in the view.
(see: http://drupal.org/node/156130 for more details on this known behavior in Views)
I inserted the following code into custom_view_tile() which solves the problem so far:
<?php
+ if (!isset($view->override_path)) {
+ $view->override_path = $_GET['q'];
+ }
$content = $view->preview($display_id, $args);
?>This is the recommended solution by the Views code maintainer to solve this problem.
The only issue relates to "args" specified on the URL path. See the article mentioned above for an explanation.
I'm not sure if another solution would be superior, but wanted to point this out to anyone who might encounter this issue.
Andrew.

#1
Thank you. Appreciate the suggestion for the solution.
I will try to apply the patch soon.