File tree Expand file tree Collapse file tree 2 files changed +2
-6
lines changed Expand file tree Collapse file tree 2 files changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -116,16 +116,12 @@ public function getZendeskAuthNormalUrl()
116
116
*
117
117
* @return string Zendesk Account login unauthenticated form url
118
118
*/
119
- public function getZendeskUnauthUrl ($ return_url = "" )
119
+ public function getZendeskUnauthUrl ()
120
120
{
121
121
$ protocol = 'https:// ' ;
122
122
$ domain = $ this ->getZendeskDomain ();
123
123
$ route = '/access/unauthenticated ' ;
124
124
125
- if ($ return_url ) {
126
- $ route .= '?return_to= ' .$ return_url ;
127
- }
128
-
129
125
return $ protocol . $ domain . $ route ;
130
126
}
131
127
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ public function loginAction()
27
27
{
28
28
$ return_url = Mage::helper ('core ' )->urlDecode ($ this ->getRequest ()->getParam ('return_url ' , "" ));
29
29
if (!Mage::getStoreConfig ('zendesk/sso_frontend/enabled ' )) {
30
- $ this ->_redirectUrl (Mage::helper ('zendesk ' )->getZendeskUnauthUrl ($ return_url ));
30
+ $ this ->_redirectUrl ($ return_url ? $ return_url : Mage::helper ('zendesk ' )->getZendeskUnauthUrl ());
31
31
return $ this ;
32
32
}
33
33
You can’t perform that action at this time.
0 commit comments