[openstreetmap/openstreetmap-website] Race condition when writing directions content (Issue #5959)

Marwin Hochfelsner notifications at github.com
Sun Apr 27 22:23:32 UTC 2025


hlfan created an issue (openstreetmap/openstreetmap-website#5959)

### URL

afaict only in development environments

### How to reproduce the issue?

1. Set your location with the dev tools if wanted/needed
2. Search in OSM for a place near the location
3. Activate the "show location" feature
4. Click the directions button to "Find directions between two points"

The output gets written immediately, since the endpoints are close.
Only later (since it's not cached) does Rails respond with the contents of `directions/search.html.erb`.
So, since the `#directions_content` div wasn't there when the instructions were meant to be written, it remains blank.

### Screenshot(s) or anything else?

_No response_

-- 
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/issues/5959
You are receiving this because you are subscribed to this thread.

Message ID: <openstreetmap/openstreetmap-website/issues/5959 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20250427/7b983204/attachment.htm>


More information about the rails-dev mailing list