Detect and fix direct imports of sap/m/URLHelper
Maintainers usually reply within 1 day
@flovogt is already working on this.
Since Sep 24, 2026.
Assessment
This issue has not been assessed yet.
Description
The UI5 linter should report an error when sap/m/URLHelper is imported directly as a module. URLHelper is not intended to be consumed via a standalone module import but must be accessed through sap/m/library.
Wrong usage
sap.ui.define([
"sap/m/URLHelper"
], (URLHelper) => {
"use strict";
onInit() {
URLHelper.redirect("https://www.openui5.org", true);
}
});
Recommended usage
sap.ui.define([
"sap/m/library"
], (mLibrary) => {
"use strict";
onInit() {
mLibrary.URLHelper.redirect("https://www.openui5.org", true);
}
});
- Dominant language
- TypeScript
- Stars
- 82
- Forks
- 14
- Avg merge
- 10h 17m
- Merged PRs (30d)
- 13
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from UI5/linter
-
Feat: Maximize performance for XML/HTML parsingPossibly taken @flovogt claimed this 17 days ago. Open
Difficulty 4/5 3-5 days Newbie friendliness 25/100
UI5/linter#1164 · 1 comment · 1 assignee ·
Maintainers usually reply within 1 day
-
Sync UI5 versions across projectMay be free again @flovogt claimed this 53 days ago, and no pull request is open. Opendetection
UI5/linter#1155 · 2 comments · 1 assignee ·
Maintainers usually reply within 1 day
-
Manifest best practices: Detect `serviceUrl` or `uri` under `/sap.ui5/models` and migrate to `/sap.app/dataSources`May be free again @flovogt claimed this 61 days ago, and no pull request is open. Opendetection
UI5/linter#1145 · 1 comment · 1 assignee ·
Maintainers usually reply within 1 day
-
Detect and possibly autofix missing super calls when overriding UI5 lifecycle and event hooksMay be free again @flovogt claimed this 67 days ago, and no pull request is open. Opendetection
Difficulty 4/5 3-5 days Newbie friendliness 45/100
UI5/linter#1140 · 1 comment · 1 assignee ·
Maintainers usually reply within 1 day
-
Detect and fix missing library dependencies in UI5 YAMLMay be free again @flovogt claimed this 68 days ago, and no pull request is open. Openautofix detection
UI5/linter#1139 · 1 comment · 1 assignee ·
Maintainers usually reply within 1 day
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
platform:windows provider:antigravity-cli providers setup triaged wontfix
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
can1357/oh-my-pi#21349 · 1 comment ·
Maintainers usually reply within 1 day
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 2 days
-
agentic-workflows
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
ohcnetwork/care_fe#17474 ·
Maintainers usually reply within 1 day
-
enhancement good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 90/100