Fixed correct routing when not running in root path