diff --git a/pandora_console/extensions/realtime_graphs/realtime_graphs.js b/pandora_console/extensions/realtime_graphs/realtime_graphs.js
index 6460ffc36d..64960cc658 100644
--- a/pandora_console/extensions/realtime_graphs/realtime_graphs.js
+++ b/pandora_console/extensions/realtime_graphs/realtime_graphs.js
@@ -42,14 +42,13 @@
 	}
 
 	function requestData () {
-		var ajaxPath = $("#hidden-ajax_path").val();
+		var rel_path = $("#hidden-rel_path").val();
 
 		currentXHR = $.ajax({
-			url: ajaxPath,
+			url: rel_path + "extensions/realtime_graphs/ajax.php",
 			type: "POST",
 			dataType: "json",
 			data: {
-				page: "extensions/realtime_graphs/ajax",
 				graph: $('#graph :selected').val(),
 				graph_title: $('#graph :selected').html(),
 				snmp_community: $('#text-snmp_community').val(),