Commit dacecb3
authored
Enable or disable URL rewriting with a checkbox (#207)
Now that we have the ability to [rewrite URLs](#202) in the imported content, let's expose it to the users.
This PR adds a checkbox in the author mapping step that sets URL rewriting on or off. It is checked by default:
<img width="3482" height="1756" alt="CleanShot 2025-09-12 at 14 36 03@2x" src="https://github.com/user-attachments/assets/7f3684a7-05b8-4cc3-a696-696204dad46a" />
CC @schlessera @swissspidy – you might want to add a WP-CLI flag to enable the `rewrite_urls` option. Also cc @zaerl @brandonpayton
## Testing instructions
CI. E2E tests cover a scenario where the checkbox is checked and unchecked.1 parent 3f870a1 commit dacecb3
9 files changed
Lines changed: 421 additions & 311 deletions
File tree
- .github/workflows
- e2e
- src
- php-toolkit
- DataLiberation/BlockMarkup
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
11 | 15 | | |
| 16 | + | |
12 | 17 | | |
13 | 18 | | |
14 | 19 | | |
| |||
29 | 34 | | |
30 | 35 | | |
31 | 36 | | |
32 | | - | |
33 | | - | |
34 | | - | |
| 37 | + | |
35 | 38 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
| 24 | + | |
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| 30 | + | |
30 | 31 | | |
31 | 32 | | |
32 | 33 | | |
0 commit comments