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 after registration and auto login is not working
- PHP header(Location: …): Force URL change in address bar
- What does HTTP/1.1 302 mean exactly?
- php refresh current page?
- How to force a 404 on WordPress
- Disable front end to use as CMS only?
- Redirect Restricted Page to 404
- How to redirect non-logged in users to a specific page?
- How to prevent automatic redirection of 404 errors and “incorrect” URLs?
- How do I skip wordpress’s 404 handling and redirect all 404 errors for static files to 404.html?
- Disable WordPress URL auto complete
- Host the wp-admin on another domain?
- Redirect user to original url after login?
- When I change slug, will WordPress create redirect from the old URL?
- WordPress localhost site redirect to live site
- WordPress redirecting connections on port 8080 to 80
- WordPress Redirect All HTTP requests to HTTPS via .htaccess
- wp_redirect() function is not working
- Redirect entire website to a single page
- My wordpress multisite homepage redirects to signup page
- Logout redirect to home page
- Disable ONLY URL auto complete, not the whole canonical URL system
- Redirect Localhost wordpress site to dashboard
- Redirect page URL to home URL without using a plugin
- Why is WordPress redirecting from http to https on a local environment?
- Login redirect to previous page
- How to prevent redirect to ‘About’ after core upgrade?
- 301 redirect instead of 404 when URL is a prefix of a post or page name?
- Why is wp_redirect() preferable to a standard PHP header redirect?
- How do I programmatically generate a 404?
- Redirect to referring page after logging in
- User redirect to destination URL after login
- Prevent access to single post types
- check first time login only
- How to change the default logout link on WordPress Admin
- Stop WordPress from “guessing” redirects for nonexistent URLs
- WordPress install enters an infinite loop
- How to configure nginx to redirect requests to the uploads directory to the production server?
- WordPress HTTPS redirect loop
- Why am I getting a 301 on a existing post?
- Redirect to dashboard after login
- Make a video post redirect to next post after completion
- Old blog/ and blog/feed/ URLs not working after moving blog to top-level via .htaccess
- Non-WordPress page in subdirectory under WordPress page
- Force HTTPS using .htaccess – stuck in redirect loop
- How to redirect after login, the working way?
- Keeps on redirecting on my development copy
- Password change when the user login first time
- Custom login form redirect to external site
- Redirecting WordPress /.htaccess / HSTS / SSL
- 301 redirect not working through .htaccess
- handling login/logout redirects
- Clarification on auth_redirect()
- Site redirects to wrong url when saving settings
- How to redirect all requests to wp-login.php?
- Implementing global redirection (automatic redirect for all pages who had their slug changed)
- Correct way to hide pseudo pages from being shown?
- Redirect blog page to latest post?
- Why does WordPress automatically redirect URLs with the parameter “name=” to a different page?
- Receiving “This content cannot be displayed in a frame” error on login page
- prevent/block direct access to a thank you page
- Redirect After Delete User in Backend
- Exclude a path from WordPress using .htaccess redirects (Apache)
- How to setup 301 redirects for multiple query string URLs?
- How to redirect url requests to https? [closed]
- How to display error messages using WP_Error class?
- Using `auth_redirect` : keeps asking me to login even when I’m logged in
- Htaccess redirect from ‘/%postname%.html’ to ‘/%postname%’