(refs #3156, BP from #3073) fixed

make redirect to login action when tha page is following condition

1. login action is required ssl setting.
2. access doesn't use ssl then the member is not login.
3. the accessed page is that  'is_secure' is 'false' or 'both'.
(refs #3156, BP from #3073) add feature to set next_uri value when the GET parameter was given
Merge branch 't3156' into stable-3.8.x (fixes #3156, BP from #3073)