Skip to content

Commit

Permalink
Keep postcode search bounds
Browse files Browse the repository at this point in the history
  • Loading branch information
jonkri committed Nov 14, 2023
1 parent ba1b00e commit 89294d2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
- Fallback extra field in submit email should be `name`, not `code`.
- Allow confirmation links to login user 30s within first use to prevent things like Outlook 'safelinks' breaking the UX.
- Fixes default status report filter text on Your Account page. #4558
- Don't zoom to bounds when searching for a postcode.
- Admin improvements:
- Rename emergency message to site message.
- Added a category control for overriding the text of the new report details field.
Expand Down
2 changes: 1 addition & 1 deletion web/js/map-OpenLayers.js
Original file line number Diff line number Diff line change
Expand Up @@ -769,7 +769,7 @@ $.extend(fixmystreet.utils, {
// Look at original href here to know if location was present at load.
// If it was, we don't want to zoom out to the bounds of the area.
var qs = OpenLayers.Util.getParameters(fixmystreet.original.href);
if (!qs.bbox && !qs.lat && !qs.lon) {
if (!qs.bbox && !qs.lat && !qs.lon && !qs.pc) {
zoomToBounds(extent);
}
} else {
Expand Down

0 comments on commit 89294d2

Please sign in to comment.