When using D9, the cookiebot config page is not rendering because of a call to a deprecated function - path.alias_manager

This small patch fixes that.

Issue fork cookiebot-3172479

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

markconroy created an issue. See original summary.

markconroy’s picture

Status: Active » Needs review
StatusFileSize
new2.13 KB

Uploading patch, setting to "needs review" so the CI Bots can check it.

Status: Needs review » Needs work

The last submitted patch, 2: 3172479-2.patch, failed testing. View results

markconroy’s picture

StatusFileSize
new2.13 KB

This patch is just against the alpha-7 tag, so it can be used right now while waiting on a new version of the module to be released. This is not the patch that should be used for the next version of the module.

k-mo’s picture

StatusFileSize
new2.36 KB

new patch attached for latest version

k-mo’s picture

k-mo’s picture

StatusFileSize
new2.68 KB
abramm’s picture

Status: Needs work » Reviewed & tested by the community

We're using this patch in production; setting to RTBC.

mpp made their first commit to this issue’s fork.

mpp’s picture

Status: Reviewed & tested by the community » Needs review
StatusFileSize
new3.73 KB

The patch in #7 was missing one instance of 'path.alias_manager':

    $url_alias_path = \Drupal::service('path.alias_manager')->getAliasByPath($path);
mpp’s picture

Status: Needs review » Needs work

The last submitted patch, 11: 3172479_11.patch, failed testing. View results

ras-ben’s picture

Status: Needs work » Reviewed & tested by the community

#11 seems to do the trick for me.
I have no idea why it says it failed the tests - when I view the results, it seems like everything is green?

Reviewed OK from here.

  • markconroy committed 3dafeb5 on 8.x-1.x authored by mpp
    Issue #3172479 by mpp, markconroy, mojo4444: Switch path.alias_manager...
markconroy’s picture

This patch looks good to me. Thanks for working on this everyone.

markconroy’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

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