I recently used RMT feature in gmap based view. I used RMT field callback for generating a content of marker bubble which is displayed after clicking on marker. Problem appeared when i wanted to use same view on different pages. For example when view is located at url 'http://domain.com/' and RMT callback is set to 'ajax/gmapbubble' after click on bubble, ajax request is called to url 'http://domain.com/ajax/gmapbubble', but when the same view is used at url 'http://domain.com/page' after click, request is called to 'http://domain.com/page/ajax/gmapbubble'.
Problem is in the marker.js file when the url is composed as relative url without basepath. I created a patch which just add Drupal.settings.basePath to beginning of the url, this fix lets using same view with same RMT callback on different urls.

CommentFileSizeAuthor
gmap-marker_rmt_field_callback.patch666 bytesreeller_sk

Comments

reeller_sk’s picture

Issue summary: View changes

Typo fix

podarok’s picture

Issue summary: View changes
Status: Patch (to be ported) » Needs review
podarok’s picture

Status: Needs review » Fixed

let`s make it real

commited pushed to 7.x-2.x-dev
thanks!!!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.