Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment | File | Size | Author |
---|---|---|---|
#2 | change-all-the-static-paths-3364200-2.patch | 17.49 KB | abdulaziz zaid |
Issue fork simple_sitemap-3364200
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
Comment #2
abdulaziz zaidComment #3
abdulaziz zaidComment #4
gbyte CreditAttribution: gbyte at gbyte commentedThat's fair enough! Mind creating an MR for this instead of a patch? Thanks.
Comment #7
shivam_tiwari CreditAttribution: shivam_tiwari at Innoraft commentedComment #9
gbyte CreditAttribution: gbyte as a volunteer and at gbyte commentedWe 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.Comment #10
gbyte CreditAttribution: gbyte as a volunteer and at gbyte commented