I have a problem with my url, when I go to the project-detailed.php page it shows in the url the project id being detailed, like this:
When I go to the alter-project.php page if all goes well, I go to the detailed-project.php page by passing the project id that I changed:
header("Location: projeto-detalhado.php?id='$projeto->getId()'");
The problem is that urls mingle and become a mess and the project-detailed page can not fetch the project.
NOTE: I'm getting the project id via get to do the search and list the details of it.
$projeto = $projetoDAO->buscaProjetoPorId($_GET['id']);
Is there any function for me to clear the url, and it only has what I sent in the header ()?