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.
ADM
On Thu, Jun 7, 2012 at 10:28 AM, Adm linuxloverstaff@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.
I was taking it from your emails statement that you could in fact navigate directly to 'exampleview/myarg', but that only when drupal_goto is invoked it fails.
You haven't really posted any of the code surrounding the drupal goto, but if $_GET['destination'] is set, it will override the url provided by drupal_goto.
Did you try inserting the debugging statements to verify that the problem is what you think it is?
-----Original Message----- From: support-bounces@drupal.org [mailto:support-bounces@drupal.org] On Behalf Of Earnie Boyd Sent: Thursday, June 07, 2012 9:31 AM To: support@drupal.org Subject: Re: [support] drupal_goto and views arguments
On Thu, Jun 7, 2012 at 10:28 AM, Adm linuxloverstaff@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.