absolute links fail when importing project from gh-pages

My website was hosted at github pages, then I migrated to gitlab.
But in all my html code, refs (href and src) to css and js are absolute!
As I had to put everything in /public folder, I have no more access to any files linked..
To avoid modifying all refs and have paths like /public/includes/mycode
is there some setting I can pass to gitlab-ci.yml (actually using plain html deployement), so the server uses /public as the root folder in absolute links?

Thanks

Edited May 02, 2019 by Florian du Garage Num'
Assignee Loading
Time tracking Loading