Skip to content

if you copy and paste simple donate url and share it - the shared link will be broken #74

@jmcclelland

Description

@jmcclelland

The proper address to publicize your simple donate page is: /civicrm/simple/donation/redirect?id=NN where NN is replaced with the contribution ID for the given page.

If you follow the redirect link, the controller will capture the contribution page id passed in via the id parameter and save it in your session, and then redirect your browser to a different page - /civicrm/simple/#/donation/NN/ where NN is your contribution page id. When you land on this page, the contribution page id is retrieved from your session and everything works.

Most people won't even notice being redirected and will quite naturally want to copy and paste the address to share with others. That's the mistake I made when testing which led to the error I received (see below).

The error happens when no contribution page id is set in your session and you just go straight to /civicrm/simple/#/donation/NN/.

I think something has to change here - although I'm not sure what or how. Having a publicly available donation link that will break if other people use it seems like a bad idea.

Error: CRM.simpledonate is undefined
@https://iowacci.ourpowerbase.net/civicrm/ajax/angular-modules?format=js&r=aCZUu:2458:5
e@https://iowacci.ourpowerbase.net/sites/all/modules/civicrm/bower_components/angular/angular.min.js?r=aCZUu:36:313
instantiate@https://iowacci.ourpowerbase.net/sites/all/modules/civicrm/bower_components/angular/angular.min.js?r=aCZUu:36:432
Fe/this.$get</<@https://iowacci.ourpowerbase.net/sites/all/modules/civicrm/bower_components/angular/angular.min.js?r=aCZUu:76:3
link@https://iowacci.ourpowerbase.net/civicrm/ajax/angular-modules?format=js&r=aCZUu:2156:268
Z@https://iowacci.ourpowerbase.net/sites/all/modules/civicrm/bower_components/angular/angular.min.js?r=aCZUu:70:149
I@https://iowacci.ourpowerbase.net/sites/all/modules/civicrm/bower_components/angular/angular.min.js?r=aCZUu:59:255
g@https://iowacci.ourpowerbase.net/sites/all/modules/civicrm/bower_components/angular/angular.min.js?r=aCZUu:51:335
G/<@https://iowacci.ourpowerbase.net/sites/all/modules/civicrm/bower_components/angular/angular.min.js?r=aCZUu:50:444
Q/<@https://iowacci.ourpowerbase.net/sites/all/modules/civicrm/bower_components/angular/angular.min.js?r=aCZUu:52:322
h@https://iowacci.ourpowerbase.net/sites/all/modules/civicrm/bower_components/angular/angular.min.js?r=aCZUu:56:322
x@https://iowacci.ourpowerbase.net/civicrm/ajax/angular-modules?format=js&r=aCZUu:2155:364
$broadcast@https://iowacci.ourpowerbase.net/sites/all/modules/civicrm/bower_components/angular/angular.min.js?r=aCZUu:129:65
m/<@https://iowacci.ourpowerbase.net/civicrm/ajax/angular-modules?format=js&r=aCZUu:2160:408
f/<@https://iowacci.ourpowerbase.net/sites/all/modules/civicrm/bower_components/angular/angular.min.js?r=aCZUu:112:182
$eval@https://iowacci.ourpowerbase.net/sites/all/modules/civicrm/bower_components/angular/angular.min.js?r=aCZUu:126:246
$digest@https://iowacci.ourpowerbase.net/sites/all/modules/civicrm/bower_components/angular/angular.min.js?r=aCZUu:123:357
$apply@https://iowacci.ourpowerbase.net/sites/all/modules/civicrm/bower_components/angular/angular.min.js?r=aCZUu:127:10
l@https://iowacci.ourpowerbase.net/sites/all/modules/civicrm/bower_components/angular/angular.min.js?r=aCZUu:81:193
F@https://iowacci.ourpowerbase.net/sites/all/modules/civicrm/bower_components/angular/angular.min.js?r=aCZUu:85:314
wf/</C.onload@https://iowacci.ourpowerbase.net/sites/all/modules/civicrm/bower_components/angular/angular.min.js?r=aCZUu:86:349
 <div ng-view="" class="ng-scope">

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions