Having a persistent problem while attempting to use this module on a virtual host account. Login of users occurs properly, but user is directed to virtual host document root twice:

Page request (not auto-logged in):
httx://somedomain.com/~user/some.page

Path in address bar after auto-login and 404:
httx://somedomain.com/~user/~user/some.page

All links on the 404 page (if any) are correct, and any subsequent requests for pages by auto-logged-in user are correct.

Comments

Mr. Sharkey created an issue. See original summary.

Mr. Sharkey’s picture

After more trial and error, I've found that the work-around for this is the same as that described in this issue: https://www.drupal.org/project/ip_login/issues/2837733, commenting out line 183 of ip_login.module:

179     // for clarity about every scenario, use extensive logic
180     if (is_null($can_login_as_another_user)) {
181       // first time login for user, so log in automatically.
182       ip_login_login($matched_uid);
183       //drupal_goto(ltrim(request_uri(), '/'));
184     }
185     elseif ($can_login_as_another_user == FALSE) {
186       // user logged out, but is not allowed to use another user, so log in     again.
187       ip_login_login($matched_uid);
188       drupal_goto(ltrim(request_uri(), '/'));
189     }

ltrim() chops off everything from the beginning of request_uri to the first slash (the matched character).

Wondering if it would be recommended to comment out each instance of ltrim() in the module (3 total)?

Mr. Sharkey’s picture

Issue summary: View changes
Mr. Sharkey’s picture

Issue summary: View changes
amateescu’s picture

Status: Active » Closed (outdated)

Closing old issues.

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.