Fix for reply to user avatar and picture uploading not working when editing post when using prefix

Fix for reply to user avatar and picture uploading not working when editing post with discourse running in a prefix