Links in stage environments are absolute and send users to live enviroment
So ive solved it with js 

$('a').each(function() {
    if(!$(this)||$(this)=="undefined") return;
    var href = $(this).attr('href');
    if(!href)return;
    if (href.includes("live-environment.org")){
        var live_env_url = href;
        var stg_url = new URL(live_env_url);
        stg_url.hostname = Drupal.settings.basePath.substring(0, Drupal.settings.basePath.length-1);;
        $(this).attr('href', decodeURIComponent(stg_url.href));
    }
});