Added correct redirection
Finished initial implementation with long id’s