[support] drupal_goto and views arguments

Earnie Boyd earnie at users.sourceforge.net
Thu Jun 7 16:30:38 UTC 2012


On Thu, Jun 7, 2012 at 10:28 AM, Adm <linuxloverstaff at gmail.com> wrote:
> Gerald Klein
>> I guess maybe I don't understand the question. exampleview/myarg should
>> take you to exampleview and pass myarg in?
>
> Yes: myarg is the view argument.
>
> "Metzler, David"
>> If clean urls are enabled, drupal_goto('exampleview/myarg') should work.
>> Are you 100% sure that the url is constructed properly and that there
>> aren't other destination= urls in play or something like that?
>
> Thanks for your replies.
> I'm not sure about others destination=. The result is part of
> ''exampleview/myarg' (final destination is ''exampleview'), not
> another page. That's very strange, seems like something transforms the
> string.

Seems to me there is no page callback for exampleview/myarg.  The page
callback is given in the hook_menu implementation that views would
have created for the item.  However a page callback does exist for
exampleview but since no exampleview/myarg page callback exists then
you get the default exampleview page.

-- 
Earnie
-- https://sites.google.com/site/earnieboyd


More information about the support mailing list