offset-dev / strapi-calendar

Visualize your Strapi content in month, week or daily view
36 stars 13 forks source link

There's a problem with the Strapi calendar: it's not redirecting to specific IDs when clicking on events on calendar. #44

Closed vishalmenghare1 closed 5 months ago

vishalmenghare1 commented 5 months ago

When clicking on any event in the calendar, it should redirect to the events list page, but it should specifically redirect to the page related to that event's ID. The file to modify is located at strapi-calendar/admin/src/pages/index.js, on line 331. The link should be updated from <Link to={/content-manager/collectionType/${settings.collection}/${id}}> to <Link to={/content-manager/collection-types/${settings.collection}/${id}}>. (collectionType => collection-types) Could you please investigate this issue?

(correct URL -http://localhost:1337/admin/content-manager/collection-types/api::event.event/50 - this URL gives an expected output)

LuisRodriguezLD commented 5 months ago

Thanks for reporting. This has been fixed here https://github.com/offset-dev/strapi-calendar/pull/38

I'll push an update to NPM before EOW but for now you can change your package.json to

"@offset-dev/strapi-calendar": "https://github.com/offset-dev/strapi-calendar#develop"

Closing this for now but feel free to reopen if the develop branch doesn't work for you