Fixed permalink so that the correct graphs are loaded when using a perma...

...link with specific dates.