digitalpoint
Well-known member
I tried finding an existing variable, but I couldn't find one...
Is there a JavaScript variable set somewhere that is the current base URL for routes? For example... with rewritten friendly URLs enabled, it would be "http://xenforo.com/community/" here... without mod_rewrite going, it would be "http://xenforo.com/community/index.php?"
Want to make an AJAX request initiated from a JS file, but want to make sure the request is going to the right place...
Is there a JavaScript variable set somewhere that is the current base URL for routes? For example... with rewritten friendly URLs enabled, it would be "http://xenforo.com/community/" here... without mod_rewrite going, it would be "http://xenforo.com/community/index.php?"
Want to make an AJAX request initiated from a JS file, but want to make sure the request is going to the right place...