Problem/Motivation

Link generation on line 132 of tree.js does is hard coded to use '/' and produces in the wrong URL in some circumstances.

Proposed resolution

Replace with drupalSettings.path.baseUrl see system.module or Drupal.url() see drupal.js

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

exiled_hammer created an issue. See original summary.

exiled_hammer’s picture

Assigned: exiled_hammer » Unassigned
exiled_hammer’s picture

Issue summary: View changes

exiled_hammer’s picture

Opened an alternative MR using the JS URL function

exiled_hammer’s picture

Issue summary: View changes
selvira’s picture

Assigned: Unassigned » selvira
selvira’s picture

Same issue, I tested the solution on #60 and it worked nicely. I am applying it.
Thank you and best regards.

selvira’s picture

Status: Active » Reviewed & tested by the community
selvira’s picture

Assigned: selvira » Unassigned

vladimiraus changed the visibility of the branch 3495013-js-link-generation to hidden.

vladimiraus changed the visibility of the branch exiled-hammer-2.0.x-patch-3c43 to hidden.

  • vladimiraus committed 88583bca on 2.0.x
    Issue #3495013 by exiled_hammer, selvira, vladimiraus: JS link generation
vladimiraus’s picture

Status: Reviewed & tested by the community » Fixed

Thank you. Committed. 🍻

Status: Fixed » Closed (fixed)

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