Got the basename solution from https://github.com/ReactTraining/react-router/issues/7664 for React-router v6.0 basename issue.
With the basename in the Routes element