Drupal 6, Views 2.
I would like the "View" link to point somewhere completely different than it normally does.
hook_views_pre_render() and dug around in the
$view object, but I can't seem to find the path in there.
How can I change the "View" link?
If all else fails, just edit the views template. Go into the views theming information and select the template and edit the more link for it. It would be named along the lines of
views-view--MYVIEWNAME--MYVIEWDISPLAYNAME.tpl.php and inside you can edit the more link area in the template. (There is also a
more template you can modify but I've not done it that way before)
<div class = "more-link">' . l( t('See more'), 'internal/path/' . $view->args, array('options' => array('HTML' => TRUE)) ) . '</div>';
I used this method (views 3.x):
<?php // get the $view object somehow and alter the display_handler options // see views_plugin_display.inc ~ render_more_link() method $view->display_handler->set_option('link_display', 'custom_url'); $view->display_handler->set_option('link_url', 'node/!1/somewhere');
Although views templates are very powerful, if all you need is a link, you could just put one in the footer field and use the same css class views does for read more links.
Just building on what was mentioned above (I didn't feel comfortable just editing the original answer).
For Views 3: You can do the following....
Within the views tpl file change the More code to:
if ($more): print str_replace('/front', '/latest-news', $more); endif;
Note: You will need to add the proper php code around each line (I couldn't figure out how to do that in the editor :(