[openstreetmap/openstreetmap-website] History navigation inconsistent (Issue #4506)

wireguy notifications at github.com
Sat Feb 3 14:40:26 UTC 2024


### URL

https://www.openstreetmap.org/relation/1941310

### How to reproduce the issue?

going to: [https://www.openstreetmap.org/relation/1941310](https://www.openstreetmap.org/relation/1941310)
shows the latest version of the relation, 5, but the history navigation has the previous version as 1, and the next version as 5:

<img width="237" alt="image" src="https://github.com/openstreetmap/openstreetmap-website/assets/47227325/6ec52a9d-0812-4d0d-b8c8-fcbf673a3a1b">

going to [https://www.openstreetmap.org/relation/1941310/history/5](https://www.openstreetmap.org/relation/1941310/history/5)
also shows version 5 of the relation, but the history navigation has the previous version as 4, and no next version

<img width="232" alt="image" src="https://github.com/openstreetmap/openstreetmap-website/assets/47227325/81f5b3e9-3f9e-4640-93ee-bea7b6d24e0f">

The second way seems correct, from version 5, the previous should be version 4.

### Screenshot(s) or anything else?

issue seems to be in:

[app/views/browse/feature.html.erb](https://github.com/openstreetmap/openstreetmap-website/blob/master/app/views/browse/feature.html.erb)

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

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


More information about the rails-dev mailing list