public function getRedirectUri()
    {
        // Force `addTrailingSlashesToUrls` to `false` while we generate the redirectUri
        $addTrailingSlashesToUrls = \Craft\craft()->config->get('addTrailingSlashesToUrls');
        \Craft\craft()->config->set('addTrailingSlashesToUrls', false);

        $redirectUri = \Craft\UrlHelper::getActionUrl('oauth/connect');

        // Set `addTrailingSlashesToUrls` back to its original value
        \Craft\craft()->config->set('addTrailingSlashesToUrls', $addTrailingSlashesToUrls);

        // We don't want the CP trigger showing in the action URL.
        $redirectUri =  str_replace(\Craft\craft()->config->get('cpTrigger').'/', '', $redirectUri);

        OauthPlugin::log('Redirect URI: '. $redirectUri, LogLevel::Info);

        return $redirectUri;
    }
public function getRedirectUri()
    {
        // Force `addTrailingSlashesToUrls` to `false` while we generate the redirectUri
        $addTrailingSlashesToUrls = \Craft\craft()->config->get('addTrailingSlashesToUrls');
        \Craft\craft()->config->set('addTrailingSlashesToUrls', false);

        $redirectUri = \Craft\UrlHelper::getActionUrl('oauth/connect');

        // Set `addTrailingSlashesToUrls` back to its original value
        \Craft\craft()->config->set('addTrailingSlashesToUrls', $addTrailingSlashesToUrls);

        // We don't want the CP trigger showing in the action URL.
        $redirectUri =  str_replace(\Craft\craft()->config->get('cpTrigger').'/', '', $redirectUri);

        OauthPlugin::log('Redirect URI: '. $redirectUri, LogLevel::Info);

        return $redirectUri;
    }
public function getRedirectUri ( ) { // Force `addTrailingSlashesToUrls` to `false` while we generate the redirectUri $ addTrailingSlashesToUrls = \ Craft \ craft ( ) -> config -> get ( 'addTrailingSlashesToUrls' ) ; \ Craft \ craft ( ) -> config -> set ( 'addTrailingSlashesToUrls' , false ) ; $ redirectUri = \ Craft \ UrlHelper :: getActionUrl ( 'oauth/connect' ) ; // Set `addTrailingSlashesToUrls` back to its original value \ Craft \ craft ( ) -> config -> set ( 'addTrailingSlashesToUrls' , $ addTrailingSlashesToUrls ) ; // We don't want the CP trigger showing in the action URL. $ redirectUri = str_replace ( \ Craft \ craft ( ) -> config -> get ( 'cpTrigger' ) . '/' , '' , $ redirectUri ) ; OauthPlugin :: log ( 'Redirect URI: ' . $ redirectUri , LogLevel :: Info ) ; return $ redirectUri ; }
Returns the redirect URI

@return array|string
Returns the redirect URI