Moved path manipulation to html response

[#75417992]