I think I found the solution myself. When I adjusted the declaration of the registration form:
<form name="registerform" id="registerform" action="<?php echo esc_url( site_url('wp-login.php?action=register', 'login_post') ); ?>" method="post" novalidate="novalidate">
To the following:
<form name="registerform" id="registerform" action="<?php echo esc_url( site_url('wp-login.php?action=register&role=".$_GET["role'], 'login_post') ); ?>" method="post" novalidate="novalidate">
Then my problem is solved and the registration page is not redirected to the standard registration url.
I hope this can help other persons too.
Related Posts:
- How to redirect a sucessful registration to a page template?
- Redirect to custom url when registration fails?
- Restrict Access to wp-login.php
- Redirect to custom URL after registering from a page with registration form
- Redirect user after login/registration globally
- How to redirect action=register link on the lostpassword page to a different link?
- How do I redirect a user when he is logged in after clicking on a menu
- Custom Registration page – prevent redirect to wp-login.php?action=register
- How to auto login after registration? [duplicate]
- How to modify the Register link in the login page?
- How to redirect to home page after registration?
- Redirect if $_Server[‘REQUEST_URI’] is /wp-login.php?checkemail=registered
- How to include error message on login
- Front end user creation form! How do you keep the user on the same page in event of error?
- 503 Service Unavailable error was encountered
- Unable to access folders in same level as wordpress installation
- Redirect users after register (first login) and force submit post
- Login/Register redirect user with message
- Why does WP HTTP API switch the method (POST/PURGE) to GET when redirecting (302)?
- Redirect User to login page
- Why I am not able to direct user to my blog section without login?
- Blog post is redirecting to home page
- wp_redirect is only working in Chrome Network, page is not redirecting
- WordPress website down with error “redirected you too many times.”
- I get “too many redirects” problem when migrating localhost site
- redirect to another page if user has registered successfully
- How to redirect new registrars to a custom registration page instead of WP default registration page?
- custom error message or redirect to custom page if any error occurs
- Getting error when trying to redirect WP site to mobile site
- Other pages fine but wp-admin showing ERR_TOO_MANY_REDIRECTS Error
- How to disable login and registration pages?
- How to setup an automatic redirect for when there has been a critical error on the site?
- Redirect Restricted Page to 404
- Redirect user to original url after login?
- Site redirects to wrong url when saving settings
- Redirect blog page to latest post?
- WordPress site redirects to different wordpress domain on the same server after reuploading db backup
- Error 310 too many redirects after switching domains
- Links to an exisiting Page are now redirecting to a draft page?
- Random and Erroneous WordPress Redirect
- Redirect Old domain & posts to new domain homepage
- add_rewrite_rule to pass entire path as a single parameter
- What is the wordpress way of displaying local external content?
- RedirectMatch and Redirect interfering with each other
- Return to where the user was, after log out
- Change ‘Back To Website’ link in wp-login.php
- How do I map a subdomain in wordpress to the primary domain in a multisite setup?
- htaccess rules not applied?
- Load time cost of using a redirect plugin v direct .htaccess entry
- Intercept the “lost password” action by first redirecting to an existing instructions page
- How to pass email values from one php page to another
- WooCommerce unexpected behavior [closed]
- Force WordPress to load from site’s hostname
- Redirect custom post type from one domain to another domain
- How can I force the user to log in, even if they’re already authenticated?
- Stop Redirecting to and from www
- How to pass a message using template_redirect
- Disable WordPress URL auto complete
- W3 Cache redirects to front page when I press purge all caches
- Stop forcing certain paths to end with a forward slash
- Is it possible to wp_redirect() to a new tab?
- Redirection on Custom page
- How do I redirect users after submitting a topic for moderation?
- Direct iPhone visitors to different stylesheet?
- How to delete a post and keep its slug to refer to another post
- 301 redirect any RSS feed on level up url
- Dynamic 404 page content while still keeping 404 status code?
- Redirect loop with similar URLs
- Redirect user to specific link after login
- 301 redirect via htaccess rules on the new site
- WordPress Domain redirects to different host
- Change the domain url?
- custom login form redirect problem
- Open wordpress page in directory the way index.html would open
- Redirect Homepage to another page when user login
- Determine user destination on wp-login.php
- Disable WordPress URL auto Redirect
- Toggle Redirect Function On/Off With Checkbox
- My wordpress site has “https://” on it but when I go to Dashboard and click visit site, it removes the “https://”
- After disabling Multisite, homepage redirects to non-existing page
- Internal redirect from page to category
- All links redirecting to homepage
- How to redirect non-admin/editors from specific pages?
- How to make a redirect link in wordpress?
- wp_redirect leading to an infinite loop
- I’ve move my site but URL still goes to the old site
- Redirect attachment URL
- Redirect based on $_GET parameters
- redirect attachment page to category page
- Google PageSpeed: Avoid landing page redirects?
- How to Redirect Url to homepage?
- 404 Not Found with All Cloaking plugins
- Stopping media file redirects
- Forcing header cache control in 404 pages
- Regex for pdf’s – Old .asp Site folder structure to new WordPress Media Folder(s)
- Redirect if a user has not written a post
- Create a custom redirect link that tracks the first visited page and after submitting form goes to first page using formidable forms plugin? [closed]
- WordPress not use site url when redirect 301
- Redirect certain 404 pages to parent page
- Custom Post Type slug has the same Redirection entry