Skip to content

Commit

Permalink
Fixed about not working
Browse files Browse the repository at this point in the history
  • Loading branch information
pmachapman committed Sep 27, 2021
1 parent a5af05a commit fc93449
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion GoToBible.Web/Client/Pages/Index.razor
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@
<button class="btn btn-outline-secondary ml-lg-auto mt-2 mt-lg-0" data-toggle="modal" data-target="#settings-dialog">
<span class="fa fa-cog" aria-hidden="true"></span><span class="d-lg-none d-xl-inline"> Settings</span>
</button>
<a class="btn btn-secondary ml-lg-2 d-lg-none d-xl-block mt-2 mt-lg-0" href="https://goto.bible/about" target="_blank">
<a class="btn btn-secondary ml-lg-2 d-lg-none d-xl-block mt-2 mt-lg-0" href="/about/" target="_blank">
<span class="fa fa-info-circle" aria-hidden="true"></span> About
</a>
</div>
Expand Down
3 changes: 2 additions & 1 deletion GoToBible.Web/Client/wwwroot/service-worker.published.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ async function onFetch(event) {
if (event.request.method === 'GET') {
// For all navigation requests, try to serve index.html from cache
// If you need some URLs to be server-rendered, edit the following check to exclude those URLs
const shouldServeIndexHtml = event.request.mode === 'navigate';
const shouldServeIndexHtml = event.request.mode === 'navigate'
&& !event.request.url.includes('/about/');

const request = shouldServeIndexHtml ? 'index.html' : event.request;
const cache = await caches.open(cacheName);
Expand Down

0 comments on commit fc93449

Please sign in to comment.