history api relative path bug fixed