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.
# Summary
This module allows to include path redirection in a simple way. Provides a simple way to bulk import redirects for the Redirect module from a CSV file.
Currently redirects can only be imported from the GUI via the BatchAPI. Also it is not possible to specify a language in the CSV for now.
# Project URL
https://www.drupal.org/project/path_redirect_import
# Where is the code?
https://www.drupal.org/project/path_redirect_import/releases/8.x-1.0-beta4
https://github.com/BurdaMagazinOrg/module-path_redirect_import
# Estimated completion date
Unknown
# Dependencies
# Who's doing the port?
Burda Magazin Holding
# What help do they need?
- D7 export functionality
- Documentation / README
- Handle decoded URLs
Comments
Comment #2
mvcI didn't fix the language issue or the drush command, but I improved the menus and got redirects to external URLs working:
https://github.com/BurdaMagazinOrg/module-path_redirect_import/pull/1
Comment #3
Bart Vanhoutte CreditAttribution: Bart Vanhoutte at Duo commentedI've created a fork and worked on the language support. I've also refactored the code a bit to have less in the global function namespace. See these URLs:
Can we get a dev version op on drupal.org?
Comment #4
mark_fullmerAnother fork and pull request here: https://github.com/BurdaMagazinOrg/module-path_redirect_import/pull/3
This PR is a complete rewrite of the existing code, with the main goal of having all of the redirect import logic in a D8 service, to make writing tests easier and for separation of concerns.
This pull request also:
Still to do
(1) add the "export" functionality of the 7.x branch
(2) add unit tests
(3) add help text / README
(4) Memoize the check for existing Redirects (so that large imports don't do so many database queries)
Comment #5
Bart Vanhoutte CreditAttribution: Bart Vanhoutte at Duo commentedCan we get Mark's code on drupal.org as a development release so we can start using this?
Comment #6
HongPong CreditAttribution: HongPong as a volunteer and at kor group commentedHi all, I offered to co-maintain this module just now: #2847046: Offering to co-maintain Path redirect import - I would like to support your efforts by getting the mark_fullmer and BurdaMagazinOrg development onto an 8.x-1.x branch. Best regards.
Comment #7
tjwelde CreditAttribution: tjwelde at Thunder commentedHi,
I'm sorry. I didn't have time (also was on holidays) yet.
@bart-vanhoutte I will test it and merge, if it looks alright.
@hongpong thanks for your offer. Did you already look at the code in the PR?
Comment #8
HongPong CreditAttribution: HongPong as a volunteer and at kor group commentedHi tjwelde yes I think I have a sense of the code now. I think it is a good start. I have some ideas like improving logging and documentation a bit.
Comment #9
tjwelde CreditAttribution: tjwelde at Thunder commentedOk, the dev release is ready. I also added a beta release, since it is now quite mature.
We still need documentation and handling of decoded URLs: https://github.com/BurdaMagazinOrg/module-path_redirect_import/issues/4
Comment #10
tjwelde CreditAttribution: tjwelde at Thunder commentedComment #11
mark_fullmerComment #12
tjwelde CreditAttribution: tjwelde at Thunder commentedHey mark. Did you want to comment sth? It doesn't show anything for me...
Comment #13
tjwelde CreditAttribution: tjwelde at Thunder commentedComment #14
mgiffordI don't see why this isn't fixed. I just ran a demo of the code and it worked fine. There is a 8.x-1.0-beta1 already.
Comment #15
mmjvb CreditAttribution: mmjvb as a volunteer commentedWith a beta Status should be Needs review.
@mgiffors Suggest to read the description of the D8CPT project. It explains the usage of status for issues In this project.
Comment #16
mmjvb CreditAttribution: mmjvb as a volunteer commentedhttps://www.drupal.org/project/path_redirect_import/releases/8.x-1.0-beta4