Skip to content

Commit dce9d04

Browse files
committed
docs: Address GH comments
1 parent a4e230a commit dce9d04

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

internal/documentation/docs/updates/migrate-v5.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ Update your `ui5.yaml` file to use the Component Type and Specification Version
6868

6969
Component Type follows a standardized directory structure:
7070

71-
- **Move `webapp/test` to `test`** - Test files are now at the project root level
71+
- **Move `webapp/test` to `test`** - Test folder is now at the project root level
7272
- **Move `webapp` to `src`** - The source directory is now named `src` instead of `webapp`
7373

7474
::: code-group
@@ -107,6 +107,10 @@ my-app/
107107

108108
The `index.html` file is typically moved from `/webapp` to `/test` since it's primarily used for testing the component.
109109

110+
::: tip Note
111+
If your application needs an HTML page for purposes other than testing, this might be an indicator that the project should continue to use the **application type** instead of migrating to the component type.
112+
:::
113+
110114
Update the bootstrap script path to the correct relative location (taking the project's namespace into account) and remove the obsolete `data-sap-ui-resource-roots` configuration:
111115

112116
```diff
@@ -124,6 +128,12 @@ Update the bootstrap script path to the correct relative location (taking the pr
124128
</script>
125129
```
126130

131+
::: tip Alternative: Using `<base>` Tag
132+
Instead of updating the bootstrap script path, you can add a `<base href="../../../../../">` tag in the `<head>` section of your HTML file. This allows you to keep the original path references.
133+
134+
**Important:** The `<base>` tag affects **all relative URLs** in the document (including images, stylesheets, links, scripts, and even in-page anchors like `#some-id`). If certain resources are not loading correctly after adding the `<base>` tag, check whether they were using relative paths that are now being resolved differently than intended.
135+
:::
136+
127137
#### 4. Adjust `test/testsuite.qunit.html`
128138

129139
Simplify the test suite HTML by removing obsolete bootstrap attributes:

0 commit comments

Comments
 (0)