Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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.
This only happens if there is multi language and all language has Prefix code.
Comments
Comment #2
sathish.redcrackle CreditAttribution: sathish.redcrackle at Red Crackle commentedComment #3
sathish.redcrackle CreditAttribution: sathish.redcrackle at Red Crackle commentedComment #4
sathish.redcrackle CreditAttribution: sathish.redcrackle at Red Crackle commented"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.
Comment #5
sathish.redcrackle CreditAttribution: sathish.redcrackle at Red Crackle commentedRemoved the drupal module path and updated the patch file.
Comment #6
sathish.redcrackle CreditAttribution: sathish.redcrackle at Red Crackle commentedComment #8
klausiPatch does not apply because of the "google_analytics_reports" prefix, but managed to apply it manually. Thanks!