Github Pages,, callback-URL 404


I have deployed my app to github pages.

I have setup the callback-url at the dashboard to include this url, but after I login and callback URL is triggered, I get a 404 page. I do not quite understand what goes wrong. I works perfectly in localhost, so I am guessing the /nameoftheproject/ route is complicating things. I am not sure how to circumvent that. I would appreciate any help.