In the first example, you are redirecting the user to the informed Location, and in the second including something. These are totally different things. Can’t help without seeing the code, but I believe the problem is in front Assets files (CSS and/or JS) that could not be found in the second example. Give a CTRL+U, click on the Assets links and see if they are accessible.
Most likely your JS files are in conflict, the fact that it works with "header", is that it redirects to a totally new page, already in "include", you put basically one page inside the other, calls one in another. And in this your call, you must have some JS file, running on both, which causes you a conflict and it hangs.
In the first example, you are redirecting the user to the informed Location, and in the second including something. These are totally different things. Can’t help without seeing the code, but I believe the problem is in front Assets files (CSS and/or JS) that could not be found in the second example. Give a CTRL+U, click on the Assets links and see if they are accessible.
– Clayderson Ferreira
http://stackoverflow.com/questions/2173740/what-is-difference-between-header-and-include-where-which-one-should-be-used
– Diego
Most likely your JS files are in conflict, the fact that it works with "header", is that it redirects to a totally new page, already in "include", you put basically one page inside the other, calls one in another. And in this your call, you must have some JS file, running on both, which causes you a conflict and it hangs.
– Fleuquer Lima
Try to remove all the files called in agenda.php and call them on your main page only.
– Fleuquer Lima