What would you suggest is the easiest way to make Drupal redirect to the zendesk site after login? For me it just goes to /users/my-username after I've logged in, instead of redirecting based on the destination parameter. I've tried using Login_Destination module but this doesn't seem to work with external urls, only with relative urls to the drupal site.

Any suggestions? Should this just work out of the box or am I on the right track looking for a module or some code to do this?

thanks!

- Rory

CommentFileSizeAuthor
#4 t.patch973 bytesm3avrck
#3 patch.txt501 bytesm3avrck

Comments

twom’s picture

Assigned: Unassigned » twom
Status: Active » Needs work

Hi,

Thanks for asking. Actually I would think that by setting destination=http://yourdomain.zendesk.com, what is set by default in the module, the redirection would work fine.

Actually I did for my implementation some custom redirection using the login destination module by providing a php snippet evaluating the destination parameter and returning the path of the zendesk site when ?destination=support.

Maybe I'll fix the problem by providing an internal destination path that will point to a callback that will redirect the user to the zendesk page. Looks like a good option.

To be continued... Let me know if in meantime you have found a solution that works well for u!

Tom

twom’s picture

I added the correct redirection by using an internal path that redirects to the zendesk site in the new dev version.

m3avrck’s picture

StatusFileSize
new501 bytes

This is actually still broken. See attached patch which fixes the redirect.

m3avrck’s picture

Status: Needs work » Needs review
StatusFileSize
new973 bytes

Actually see this patch:

twom’s picture

Status: Needs review » Fixed

patch committed!

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.