goto parameter for sql.php is sometimes ignored, example:
1. got to table preferences
2. follow link to truncate table (eg. open with middle button to avoid js confirmation)
3. confirm truncating table
Now you end up on sql.php, but you should have been redirected to tbl_structure.php. Also table name seems to be forgotten on the way and we're back to parent database.