• Resolved nfusionco

    (@nfusionco)


    I’m looking for how to either disable all together and just use the default WordPress behaviour for redirect after login; or I need to be able to set a custom URL for the redirect after login set in General Settings. Some plugins require you to enter a string to a certain file after login to process and this file isn’t a page. Right now it is just populated with a list of “Home Page, Current Page, WP Dashboard, and all the pages on my site.” I have different roles for my users and depending on the role they need to be sent to a custom dashboard, but once I have RegistrationMagic turned on it takes ownership of all after login commands. I can edit the files myself if you can tell me where I can set a single custom URL for after login, but if we could get the option in General Settings to enter a custom URL or select one of the current options that would be even better. Thanks

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support RegistrationMagic Support

    (@registrationmagicsupport)

    Hello,

    Thanks for writing to us. RegistrationMagic workflow is designed to allow for redirection to one of the pre-defined pages as of now.

    Unfortunately dynamic role based custom URL redirection is not possible. However, in one of our next upcoming versions, we will have feature for role based re-direction to pages from the same site.

    For redirecting to custom URLs outside the site (based on user role), we have analyzed and added the feature to our road-map list. Note that the features implementation is driven by user demand and on first come first basis, so we cannot give timeline at this point. We will mention the feature in the change log on our plugin page at ww.wp.xz.cn, once its available.

    Thread Starter nfusionco

    (@nfusionco)

    I don’t want to go outside of the site. I want to be able to define a custom URL; that doesn’t mean outside of the site. Right now you’re loading all of the pages created by WordPress. Your pulldown choice consists of “Dashboard, Home, Current Page, (a list of all wordpress pages)” so any page not created in the CMS can’t be chosen.

    Essentially I either need to rewrite where your plugin defines the redirection on login page in the code (that’s what I was asking for – where do you define the redirect so a custom url can be inputted and yeah I know that means it would go away when I updated) so I can use another plugin to redirect based on role – or if by upcoming you mean this week – the role based redirection is exactly the function that is needed.

    Thanks

    Plugin Support RegistrationMagic Support

    (@registrationmagicsupport)

    Yes, our current workflow allows redirection to one of the pages within the WordPress CMS defined pages. Even with upcoming change in next couple of weeks, while role based redirection will become feasible, but due to inherent nature of core library files from WordPress that RegistrationMagic implements, passing control to pages of the site outside CMS won’t be possible.

    If you are interested in customizing the code for manual redirection, you may like to know that RM uses WordPress filter to redirect after login. Here is the documentation link : https://codex.ww.wp.xz.cn/Plugin_API/Filter_Reference/login_redirect

    The corresponding code can be found here:

    File: ‘includes/class_registration_magic.php’
    Method: after_login_redirect

    Do let us know if you have any other questions regarding this.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Custom Login Redirect’ is closed to new replies.