Problem/Motivation

I have a project and I change the admin's path from /admin to /something if using this module some links give me /something and some
/admin and I have a 404.

Steps to reproduce

1- Change the admin path
2- enable the module and try all links get from the module.

Proposed resolution

1- Change all paths on the module to be dynamically linked using the Url class

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:

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

abdulaziz zaid created an issue. See original summary.

abdulaziz zaid’s picture

abdulaziz zaid’s picture

Status: Active » Needs review
gbyte’s picture

Status: Needs review » Needs work

That's fair enough! Mind creating an MR for this instead of a patch? Thanks.

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

shivam_tiwari’s picture

Status: Needs work » Needs review

  • gbyte committed daf0c5ab on 4.x
    Issue #3364200 by shivam_tiwari, abdulaziz zaid, gbyte: change all the...
gbyte’s picture

Status: Needs review » Fixed

We don't need $GLOBALS['base_url'] with the URL object. I decided to make the URLs relative apart from the ones that get written into the log file. I also removed all the redundant $url variables. Thanks for looking into it.

gbyte’s picture

Title: change all the static paths » Replace static administration links with dynamic ones

Status: Fixed » Closed (fixed)

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