Fix issue #397 - backend is redirecting to wrong location after sec. patch.