My current checkout should be: user registers on site via membership registration shortcode> user sees checkout screen and clicks the pay button> user pays on Paypal> user is brought back to the site (more specifically, the Training Portal page).
I just tested the entire process and rather than bringing the user back to the Training Portal, it brings them to the Protected Content page: https://emdr-training.net/protected-content/?redirect_to=https%3A%2F%2Femdr-training.net%2Ftraining-portal%2F
Strangely, at this point in the process, the user is still logged in. Therefore, if the user clicks on the "Training Portal" button in the menu from this Protected Content page, they're taken to the page without any issue (the Training Portal page is a protected page).
Any ideas as to how I can make it take the user back to the Training Portal page after paying?
Thanks in advance...