Redirect broken after page reload on sign-in

We are using Okta for CIAM and as an Authorization server. Currently, after being redirected to the login screen by an application, if you refresh the page and login to Okta, then you are redirected to the Okta home page instead of the application. We would like the user to still be redirected to the application from which they came.

Is there a way to do that? And if not, can we request a bug fix?