back_to_top module uses is_adminpage() for the admin page check. This is_adminpage() method checks if route contains admin route context not and based on that returns boolean. But there are situations where user need to add back to top on few admin pages not all.

This can be done by route subscriber to change admin_route option but doing this has its own problem. So there should be a way (alter hook in this case) which allows user to change the boolean return value for admin page.

CommentFileSizeAuthor
#2 2892237-2.patch476 bytesjoshi.rohit100
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

joshi.rohit100 created an issue. See original summary.

joshi.rohit100’s picture

Status: Active » Needs review
FileSize
476 bytes

here is patch.

Chris Matthews’s picture

Status: Needs review » Reviewed & tested by the community

Reviewed and tested 2892237-2.patch, works for me.

  • acke committed b01fd35 on 8.x-1.x authored by joshi.rohit100
    Issue #2892237 by joshi.rohit100: Allow other modules to change admin...
acke’s picture

Status: Reviewed & tested by the community » Fixed

Included in 8.x-1.0. Thanks for your help!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.