Login url fix when called from a module