CDRH / african_poetics

Orchid / Rails site for Contemporary African Poets part of African Poetics site
0 stars 0 forks source link

Block URL's from showing incorrect ID's #268

Closed karindalziel closed 1 year ago

karindalziel commented 1 year ago

https://cdrhdev1.unl.edu/african_poetics/inthenews/poets/item/apdp.work.000001

this has /poets but a /works id, which leads to a broken page

we should add to the controllers checking @res for the ID and sending to 404 if not the correct ID structure

wkdewey commented 1 year ago

I fixed the faulty link paths that were causing this problem, but I could also add a check to prevent errors.