Skip to content

Commit

Permalink
fix (import): handle URL field for pages imported (#28306) (#28662)
Browse files Browse the repository at this point in the history
### Proposed Changes
* This change will handle the URL field when importing pages to dotCMS
* The URL field will be split in folder parent path and asset name. For
example the URL "/parent1/parent2/test-page" will be used to import the
page to the folder "/parent1/parent2" with the name "test-page"
* If the import file contains the "hostFolder" field, it it points to a
folder instead of a site, that value will take precedence to set the
folder target for the imported page.

### Checklist
- [x] Tests

---------

Co-authored-by: freddyDOTCMS <147462678+freddyDOTCMS@users.noreply.github.com>
Co-authored-by: erickgonzalez <erick.gonzalez@dotcms.com>
  • Loading branch information
3 people authored and spbolton committed Jun 3, 2024
1 parent 2b46c59 commit 0ccf276
Show file tree
Hide file tree
Showing 2 changed files with 358 additions and 22 deletions.
Loading

0 comments on commit 0ccf276

Please sign in to comment.