Template controller redirect to localhost error.

Template controller redirect to localhost error resolved.