- id.attr("src", id.data("url") + "#" + querystring.stringify(params));
- } else {
- alert(I18n.t("site.edit.id_not_configured"));
+ const passThroughKeys = ["background", "comment", "disable_features", "gpx", "hashtags", "locale", "maprules", "notes", "offset", "photo", "photo_dates", "photo_overlay", "photo_username", "presets", "source", "validationDisable", "validationWarning", "validationError", "walkthrough"];
+ for (const key of passThroughKeys) {
+ if (hashParams[key]) params.set(key, hashParams[key]);