Change relative URLs to be accessed from the domain root
(cherry picked from commit 6b076ea434793068ab7236808a0dfcadbf04a384)