Redirect to a different page through registration, depending on page

Changing the function to the following works, as it checks to see if the form was submitted from the correct page:

function my_foo_registration_redirect( $redirect_to) {
        if ($_SERVER['HTTP_REFERER'] !== get_the_permalink(1693)) {
            return $redirect_to;
        }
        $redirect_to = '/videoguide-startpakke';
        return $redirect_to;
}

Thanks a lot for the super helpful comments!

EDIT: Here’s a slightly more polished solution

function my_foo_registration_redirect( $redirect_to) {
        $post_id = 1693;
        $post = get_post($post_id); 
        $slug = $post->post_name;

        if ($_SERVER['HTTP_REFERER'] !== get_the_permalink($post_id)) {
            return $redirect_to;
        }
        $redirect_to = $slug;
        return $redirect_to;
}