The way the access restriction should work is that you apply the restriction code to a page that you would like to restrict access to. If the user is not logged in and tries to access a page with the restriction on it the user should be redirected to the login page with the title of the page that sent them there in the URL.
Like you noted it is the page title that is present the in URL when the user gets to the login page that determines what page they will be redirected to after logging in.
Since the access restriction does not seem to be working for you in this way I have opened you a ticket so that we can examine the pages to try and determine what the issue may be.
To update the ticket please login to WebAssist.com and visit your support history.