Fix current_page? helper issue with engine root path
#29503

savroff wants to merge savroff:fix_current_page_engine_issue into rails:master

We do not currently have an analysis of these two commits