jumpinjackie / mapguide-react-layout

An openlayers-based modern map viewer for MapGuide
https://jumpinjackie.github.io/mapguide-react-layout/
MIT License
62 stars 13 forks source link

Weird Task Pane navigation stack when clicking tooltip links #1106

Closed jumpinjackie closed 4 years ago

jumpinjackie commented 4 years ago

Assuming you have mapguide-rest and its sample data installed.

  1. Load the SheboyganREST web layout through the ajax-viewer template (or any other)
  2. Put your mouse over a parcel. A feature tooltip should show with a link for more details.
  3. Click the link on the feature tooltip. The parcel report loads into the Task Pane (back button active)
  4. Click the back button. The Task Pane properly returns home.
  5. Click the forward button. It properly goes to the parcel report again.
  6. Click the back button, the Task Pane is stuck on the parcel report instead of going to the home page.

Only when you click the back button in multiple quick successions does it properly go back home.

jumpinjackie commented 4 years ago

The weird behavior is because the tooltip link doesn't usually have the MAPNAME and SESSION parameters and so the Task Pane will push a new entry of with this URL and the missing parameters included. The Task Pane should not try to push a new copy of the URL to the navigation stack in such cases. It should update the existing entry.