Skip to content

Commit

Permalink
fixed loop redirect
Browse files Browse the repository at this point in the history
  • Loading branch information
manishtiwari25 committed Jan 9, 2024
1 parent f837a20 commit 43e6372
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 62 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ jobs:
run: dotnet publish src/EdmxTools.csproj -c Release -o release --nologo
- name: Change base-tag in index.html from / to edmx-tools
run: sed -i 's/<base href="\/" \/>/<base href="https\:\/\/edmx.bitesinbyte.com\/" \/>/g' release/wwwroot/index.html
- name: copy index.html to 404.html
run: cp release/wwwroot/index.html release/wwwroot/404.html
- name: Add .nojekyll file
run: touch release/wwwroot/.nojekyll
- name: Commit wwwroot to GitHub Pages
Expand Down
38 changes: 0 additions & 38 deletions src/wwwroot/404.html

This file was deleted.

24 changes: 0 additions & 24 deletions src/wwwroot/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -91,30 +91,6 @@
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
<script type="text/javascript">

// Single Page Apps for GitHub Pages
// MIT License
// https://github.com/rafgraph/spa-github-pages
// This script checks to see if a redirect is present in the query string,
// converts it back into the correct url and adds it to the
// browser's history using window.history.replaceState(...),
// which won't cause the browser to attempt to load the new url.
// When the single page app is loaded further down in this file,
// the correct url will be waiting in the browser's history for
// the single page app to route accordingly.

(function(l) {
if (l.search[1] === '/' ) {
var decoded = l.search.slice(1).split('&').map(function(s) {
return s.replace(/~and~/g, '&')
}).join('?');
window.history.replaceState(null, null,
l.pathname.slice(0, -1) + decoded + l.hash
);
}
}(window.location))
</script>
</body>

</html>

0 comments on commit 43e6372

Please sign in to comment.