fix typo
use URL instead my functions
fix router and redirect both will add base_url in relative url