The /paths/{source_id}/{dest_id} endpoint varies based on content-type. When the browser first requests it (as a direct link) then it's HTML. Then an AJAX request is made which uses Accept with application/json. That is routed to a different endpoint.
When using the back and forward buttons, this ends up displaying JSON to the user if the user goes from the homepage to a results page (after a search), then hits back, then hits forward again.
The
/paths/{source_id}/{dest_id}
endpoint varies based on content-type. When the browser first requests it (as a direct link) then it's HTML. Then an AJAX request is made which usesAccept
withapplication/json
. That is routed to a different endpoint.When using the back and forward buttons, this ends up displaying JSON to the user if the user goes from the homepage to a results page (after a search), then hits back, then hits forward again.