fixed issue Issue 1549:signature of original link is lost after successful login, thanks Oleb Butovich