I'm using the identity of users for our website, alongside the forum. So this redirect should be also available outside the forum.
Imagine a another page with a built in login form, users should be able to go back to the page, outside the forum.
And yeah, should be in the core.