This is the place to report bugs and get support. When posting in this forum, please always provide as much detail as possible.
Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum, do not report it as a bug.
When posting in this forum, please try to provide as many relevant details as possible. Particularly the following:
1. Create a folder-based site
2. Go to https://domain/folder/Secure/Login.aspx (to make no referrer)
3. Login - you are redirected to domain/default.aspx
I have this fixed here and it will be in svn by the nd of the day.
Thanks, that works correct now.