Fixes a bug that prevented the .html extension from being appended to relative paths