Fixing entity preview redirect bug, when entity type is not known via the URL