Not able to authorise account after entering all details. It is redirecting to home page instead of google analytics api page. I have checked the watchdog for errors, it displays "Page not found" with google referrer url.

The issue is because of the incorrect Authorized redirect url displayed in API page. Attached image.
error

This only happens if there is multi language and all language has Prefix code.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

sathish.redcrackle created an issue. See original summary.

sathish.redcrackle’s picture

Issue summary: View changes
FileSize
306.78 KB
sathish.redcrackle’s picture

Issue summary: View changes
sathish.redcrackle’s picture

"request_path()" is the function used to get the current path and passing that value as redirect url to google analytics.
I have changed the "request_path()" to "current_path()"

Attached the patch.

sathish.redcrackle’s picture

Removed the drupal module path and updated the patch file.

sathish.redcrackle’s picture

Status: Active » Needs review

  • klausi committed 47fc0632 on 7.x-3.x
    fix(oauth): Not able to authorise account if multi language is enabled...
klausi’s picture

Version: 7.x-3.1 » 7.x-3.x-dev
Status: Needs review » Fixed

Patch does not apply because of the "google_analytics_reports" prefix, but managed to apply it manually. Thanks!

Status: Fixed » Closed (fixed)

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