Problem

Coffee's js/coffee.js has a hard coded path specified for the 'coffee.get_data' route which causes incompatibility with other modules such as Rename Admin Paths.

Proposed solution

Proposed solution is to retrieve the path for the 'coffee.get_data' route in the coffee_page_attachments() using the Url::fromRoute() method so that the compilation of the path is passed through any outbound processors.

Comments

amcgowanca created an issue. See original summary.

amcgowanca’s picture

amcgowanca’s picture

Status: Active » Needs review
coufu’s picture

Great work. Thanks for this!

  • michaelmol committed 43c2987 on 8.x-1.x authored by amcgowanca
    Issue #2981359 by amcgowanca, Coufu: Get coffee.get_data route path and...
michaelmol’s picture

Status: Needs review » Fixed

thanks

stmh’s picture

Hi,

this change breaks multilingual sites as the language prefix gets encoded twice, so its sth like /de/de/admin/coffee/get-data. Will try go create a patch

Status: Fixed » Closed (fixed)

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