On the multisite main page (http://example.com/) I have a login-form where users can login to their multisite like so:
<?php
$args = array(
'redirect' => get_active_blog_for_user(),
);
wp_login_form( $args );
?>
After logging in they will be redirected to their dashboard (http:// example.com/userblog/wp-admin/). I don't want them to be redirected to their dashboard. I want them to be redirected to their mainpage instead (http://example.com/userblog/). How can I achieve this?
Kind regards Johan