oc-includes/osclass/controller/login.php
$url_redirect = osc_get_http_referer();
This is not getting the /dashboard or /items link, but the email page in which the link was clicked.
....
osc_run_hook("after_login", $user, $url_redirect);
So in theme's functions.php file
EDITED with else return $url_redirect;
<?php
function mc_redirect_to_dashboard_after_user_login($url_redirect) {
if(strpos(osc_base_url(),$url_redirect)===false){
return osc_user_dashboard_url();
}
else return $url_redirect;
}
osc_add_filter('correct_login_url_redirect', 'mc_redirect_to_dashboard_after_user_login');
?>