DOCS-1964: fix for redirection problem