You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
WasmShellWebAppBasePath is concatenated verbatim into every generated reference. /app yields /apppackage_<hash>/..., app/ is resolved relative to the current document and breaks on deep links, and an empty value makes the index.html rewrite match every quote in the template.
What is the new behavior?
ShellTask.ParseProperties() normalizes the value through a new WebAppBasePathHelper, so every consumer sees the same string:
empty or whitespace → ./ (the bootstrapper default)
starts with . → kept relative, trailing slash added
contains :// → kept as written, trailing slash added
anything else → leading and trailing slash added; backslashes become slashes
app, app/, /app and /app/ now all produce /app/.
Docs updated (features-deep-linking.md, features-environment-variables.md) and a spec added under specs/005-web-app-base-path-normalization.
Validation
Given_WebAppBasePathHelper unit tests cover each rule (17 cases); the unit test project passes, 59 tests.
Uno.Wasm.Tests.Fingerprint built with -p:WasmShellWebAppBasePath=app and with /app/ produces identical index.html script references and service worker import (/app/package_<hash>/uno-bootstrap.js).
The Packages Windows failure here is not related to this change. The only failing task is Authenticode Sign Packages: the sign tool rejects an empty Azure tenant id for every package because PR builds don't receive the signing secrets. Every other job (Linux, Windows and macOS tests, docs checks, and the package build itself) passes.
The signing step is meant to be skipped on pull requests, but its condition in build/ci/stage-build-packages.yml is indented under the task's parameters, so the pipeline ignores it. #1080 moves that line to the task level and is the only one of my open PRs with a green Packages Windows job. Once #1080 is in, a re-run against master will clear this.
The repository currently has spec prefixes 001, 002, and 003, so 010 is not the next available numeric prefix; the PR description also refers to specs/005. Please move this spec to the intended next prefix and update any references so the required spec can be found consistently.
🧠 Review effort: Lite
Give feedback about Copilot approvals in this survey to enter a drawing for a $150 gift card.
Every generated reference concatenates the base path directly, so a
value without a trailing slash produced paths like /apppackage_<hash>,
and a value without a leading slash was resolved relative to the
current document and broke on deep links. The value is now normalized
once when the task reads its properties: empty becomes ./, a value
starting with a dot stays relative, a URL stays as is, and anything
else gets a leading and a trailing slash.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #1081
What is the current behavior?
WasmShellWebAppBasePathis concatenated verbatim into every generated reference./appyields/apppackage_<hash>/...,app/is resolved relative to the current document and breaks on deep links, and an empty value makes theindex.htmlrewrite match every quote in the template.What is the new behavior?
ShellTask.ParseProperties()normalizes the value through a newWebAppBasePathHelper, so every consumer sees the same string:./(the bootstrapper default).→ kept relative, trailing slash added://→ kept as written, trailing slash addedapp,app/,/appand/app/now all produce/app/.Docs updated (
features-deep-linking.md,features-environment-variables.md) and a spec added underspecs/005-web-app-base-path-normalization.Validation
Given_WebAppBasePathHelperunit tests cover each rule (17 cases); the unit test project passes, 59 tests.Uno.Wasm.Tests.Fingerprintbuilt with-p:WasmShellWebAppBasePath=appand with/app/produces identicalindex.htmlscript references and service worker import (/app/package_<hash>/uno-bootstrap.js).