isomerpages / isomercms-backend

A static website builder and host for the Singapore Government
5 stars 1 forks source link

Fix: use new resource room name when renaming #611

Closed alexanderleegs closed 1 year ago

alexanderleegs commented 1 year ago

This PR fixes a bug in resource renaming - previously we were updating the index file in the location of the old resource room folder instead of the new resource room, which caused the old resource room directory to continue existing - this caused issues for users who attempted to rename a resource room to something they had used before. The name in the index.html of the new resource room directory would also be incorrect (using the old name instead). This PR fixes this issue.