Default page path not working when last character in url is /

i have a page ‘d’ and have set a default path on it ‘context’

my thought is that if a user were to type

domain.com/d/

the app would correct this to
domain.com/d/context

BUT instead the app returns a 404 UNLESS i include something as the path parameter. is there a way to avoid this so that a user isnt required to include a final path parameter

HOWEEVER

if the user types
domain.com/d (NO FINAL FORWARD SLASH) there is no 404 error

and theabove is corrected to look like this
domain.com/d/:param