BoltTranslate / Translate

Provides translation for contenttypes.
Other
43 stars 37 forks source link

Fix incorrect routing of non-existing records #199

Closed COOLak closed 5 years ago

COOLak commented 5 years ago

Record frontend controller incorrectly handles non-existing records. Atm, if you try accessing /entry/non-existing-entry if entry is translatable, instead of 404 you'll be redirected to the alphabetically first entry in the database. I added a condition that checks if the entered slug is actually present in the database, and if not, then it displays the 404 page.

bobdenotter commented 5 years ago

Thanks, @COOLak! 👍

I've fixed the Yoda-condition, and am merging it in!