When the user clicks on the button with id=cancel, they are redirected to index.php.
$('#cancel').click(function() {
if(changes > 0){
$('#dialog-confirm').dialog('open');
}else{
window.location.href = "../index.php/";
}
});
The problem I’m having is that when they are redirected, all I’m seeing is the un-styled index.php page. When I clicked on the style.css link in firebug, it is just showing index.php. Why would the browser be loading index.php as the stylesheet? This happens in FF, Chrome, Safari.
Servers will serve up the same content for
/index.phpand/index.php/but relative URIs using them as base URIs will be different.You are probably finding that you are loading
/index.php/style.css(which will have the same content as/index.phpif the script doesn’t special case it) when you want/style.css.I suggest:
/) so that they function no matter how many levels deep you are../index.phpor../instead of../index.php/