diff --git a/src/react-components/profile-entry-panel.js b/src/react-components/profile-entry-panel.js
index f5225de8d982b1c7249a0b3a16c541300bcc784c..523016e25bdf1e0f127bf5a889165b1ede806322 100644
--- a/src/react-components/profile-entry-panel.js
+++ b/src/react-components/profile-entry-panel.js
@@ -85,7 +85,7 @@ class ProfileEntryPanel extends Component {
             />
             <iframe
               className="profile-entry__avatar-selector"
-              src={`${this.props.htmlPrefix}avatar-selector.html#avatar_id=${this.state.avatar_id}`}
+              src={`/${this.props.htmlPrefix}avatar-selector.html#avatar_id=${this.state.avatar_id}`}
               ref={ifr => (this.avatarSelector = ifr)}
             />
             <input className="profile-entry__form-submit" type="submit" value={formatMessage({ id: "profile.save" })} />