Permissioned page default flow not working

I have a problem on my website anytime an unlogged-in user clicks on a link that goes to a member’s only permissioned page which automatically triggers a login prompt then a subscription payment page with the message, “This page is available only for subscribers”. On this payment page, I can “Check Plans” which gets the flow moving again but it never actually finishes through to the button’s url. The user is logged in though.

I have no custom code for the button and the page that it is on is unrestricted. The site is using the default signup/login. The problem appears to be in the default flow which seems to get ahead of itself by not letting a user finish paying for the subscription before trying to access the original link.

What can be done to resolve this issue? Any help/advice would be appreciated.