File tree Expand file tree Collapse file tree 3 files changed +5
-1
lines changed
Blazor.PWA.MSBuild.Tasks/build Expand file tree Collapse file tree 3 files changed +5
-1
lines changed Original file line number Diff line number Diff line change 13
13
14
14
<!-- Base URL for the app -->
15
15
<ManifestBaseUrl Condition =" '$(ManifestBaseUrl)' == ''" >/</ManifestBaseUrl >
16
+ <ManifestBaseUrl Condition =" !'$(ManifestBaseUrl.StartsWith(/)'" >/$(ManifestBaseUrl)</ManifestBaseUrl >
17
+ <ManifestBaseUrl Condition =" !'$(ManifestBaseUrl.EndsWith(/)'" >$(ManifestBaseUrl)/</ManifestBaseUrl >
16
18
17
19
<!-- Please see https://developers.google.com/web/fundamentals/web-app-manifest/#display for options -->
18
20
<ManifestDisplay Condition =" '$(ManifestDisplay)' == ''" >standalone</ManifestDisplay >
Original file line number Diff line number Diff line change 34
34
<ServiceWorkerBlazorInstallMethod Condition =" '$(ServiceWorkerBlazorInstallMethod)'==''" >PWAInstallable</ServiceWorkerBlazorInstallMethod >
35
35
<!-- Setup the declarations for the Service Worker Register -->
36
36
<ServiceWorkerRegisterConstants Condition =" '$(ServiceWorkerRegisterConstants)' == ''" >
37
- const serviceWorkerFileName = '$(ServiceWorkerBaseURL )$(ServiceWorkerFileName)'%3B;
37
+ const serviceWorkerFileName = '$(ServiceWorkerBaseUrl )$(ServiceWorkerFileName)'%3B;
38
38
const swInstalledEvent = '$(ServiceWorkerInstalledEvent)'%3B;
39
39
const staticCachePrefix = '$(ServiceWorkerCacheName)-v'%3B;
40
40
const updateAlertMessage = '$(ServiceWorkerUpdateAlertText)'%3B;
Original file line number Diff line number Diff line change 28
28
29
29
<!-- The "home route" url for the application -->
30
30
<ServiceWorkerBaseUrl Condition =" '$(ServiceWorkerBaseUrl)' == ''" >/</ServiceWorkerBaseUrl >
31
+ <ServiceWorkerBaseUrl Condition =" !'$(ServiceWorkerBaseUrl.StartsWith(/)'" >/$(ServiceWorkerBaseUrl)</ServiceWorkerBaseUrl >
32
+ <ServiceWorkerBaseUrl Condition =" !'$(ServiceWorkerBaseUrl.EndsWith(/)'" >$(ServiceWorkerBaseUrl)/</ServiceWorkerBaseUrl >
31
33
32
34
<!-- The CSB home page served up for the base URL -->
33
35
<ProjectIndexPage Condition =" '$(ProjectIndexPage)' == ''" >index.html</ProjectIndexPage >
You can’t perform that action at this time.
0 commit comments