Redundant campId
query parameter automatically added in calendar URLs
#1416
Labels
campId
query parameter automatically added in calendar URLs
#1416
Description
When navigating the global calendar (the one that includes all events, regardless of project/campaign), there is a redundant
campId
query parameter added to the URL.Steps to reproduce
Expected Behaviour
URL should be rewritten to include
focusDate
andtimeScale
.Actual Behaviour
URL is rewritten to include
campId
,focusDate
andtimeScale
.Screenshots
Possible solutions
I believe this is because of the logic that syncs the calendar's internal state with the URL, introduced (or rather, modified) by #1384. It adds the
campId
property which is necessary for project-specific calendars, e.g. http://localhost:3000/organize/1/projects/1/calendar, but there probably needs to be some condition to only add it to the object when there is a project/campaign.The text was updated successfully, but these errors were encountered: