Fixed issue of /api/home being called on pages other than the home page