- last update
almost 2 years ago 63 pass - last update
almost 2 years ago 62 pass, 2 fail - last update
almost 2 years ago 63 pass - 🇲🇦Morocco Oussama OUDRHIRI
Using this patch "drush_create_redirect-3040413-20.patch"
this command : drush redirect-create '/test' 'test-redirected' --code=301
=>returns this error message : "The "--code" option does not accept a value."
the same command with no "--code" option: drush redirect-create '/test/1' 'test-redirected/1'
=>set's the status_code to "NULL" in the database and when editing from the Back Office the changes are not persistedIssue: the options are not taken into consideration.
Fix => I have updated the constructor to add the default spec.Note: also fixed some SonarLint warnings
- 🇫🇮Finland joey-santiago
The patch #21 seems to work fine for me. Also the --code parameter seems to work fine.
- Status changed to RTBC
over 1 year ago 7:58am 12 October 2023 - Status changed to Needs review
about 1 year ago 7:34pm 11 January 2024 - last update
about 1 year ago 63 pass - 🇲🇦Morocco Oussama OUDRHIRI
When creating redirects in large quantities, we frequently encounter situations where certain source paths are already being redirected. In Patch #21, an exception is raised specifically for this scenario. However, when the redirect is successfully saved, no information is displayed in the terminal.
In Patch #24:
- Replaced the usage of "$this->logger()->info()" with "$this->logger()->success()" for terminal output.
- Introduced an update option with the "--update" flag for the "redirect-create" command, allowing the modification of the destination and code for an existing redirect.
- Implemented a new command "redirect-update" exclusively designed for updating redirects, with filtering based on source path and language.
- Status changed to Needs work
7 months ago 7:33am 10 August 2024 - 🇨🇭Switzerland berdir Switzerland
This needs to be a merge request now and .drush.inc shouldn't be touched, no need to add that anymore.
- First commit to issue fork.
- Merge request !117Issue #3040413: Port drush add-redirect command to D8 → (Open) created by malcomio
- Status changed to Needs review
6 months ago 5:29am 13 September 2024 - 🇬🇧United Kingdom malcomio
https://git.drupalcode.org/project/redirect/-/merge_requests/117 seems to be working - please review