Fix the goto function

The url_for method was crashing if the day or month were not specified, the value was
then not a valid integer which was making the method crash.
When presenting the event as list be sure we exclude the 1st day of the next year/month