No route exists to resolve update.php to a path. Update.php needs to be able to run outside of Drupal as always but still needs a way to resolve its path within Drupal without the need for globals, such as in the hook_help() within this module.

Proposed resolution

Add a new route "system.update" to system.routing.yml with only a path to "/core/update.php".

#1 drupal8.system-module.2109553-1.patch412 byteslostkangaroo
PASSED: [[SimpleTest]]: [MySQL] 58,914 pass(es). View
Members fund testing for the Drupal project. Drupal Association Learn more


lostkangaroo’s picture

Status: Active » Needs review
412 bytes
PASSED: [[SimpleTest]]: [MySQL] 58,914 pass(es). View

Initial manual tests show that this works as intended.

neclimdul’s picture

Status: Needs review » Reviewed & tested by the community

Pretty straight forward. We could use url() to build this but the services backing that are deprecated so this is how we can build these urls using Drupal::url()

reference issue for updating system_help() #2091363: Update hook_help for System module

webchick’s picture

Status: Reviewed & tested by the community » Fixed

Committed and pushed to 8.x. Thanks!

Status: Fixed » Closed (fixed)

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