Skip to content

Tiny update on landing page redirect#193

Merged
angrave merged 1 commit intomasterfrom
isaac-landing-page-redirect-lag
Dec 4, 2024
Merged

Tiny update on landing page redirect#193
angrave merged 1 commit intomasterfrom
isaac-landing-page-redirect-lag

Conversation

@isaac-0414
Copy link
Copy Markdown
Contributor

One tiny problem. When I go to https://scribear.illinois.edu/ I see a different page for half a second before it redirects to the landing page. I think the problem here is that in our current index.html, we are doing a "refresh" instead of a straightforward redirect.

<!DOCTYPE html>
<html>
  <head>
    <meta http-equiv="Refresh" content="0; url=https://scribear.github.io/v/index.html" />
    <meta http-equiv="Refresh" content="0; url=v/index.html" />

    
  </head>
  <body>
    <p>Please follow <a href="https://scribear.github.io/v/index.html">Choose version</a>.</p>
    <p>Please follow <a href="v/index.html">Choose version</a>.</p>

  </body>
</html>

So I changed this into a Javascript redirect, which works on my laptop:

window.location.href = "https://scribear.github.io/v/index.html";

@angrave
Copy link
Copy Markdown
Collaborator

angrave commented Dec 4, 2024

Great. (It would be nice if there was a small minor option to "Choose earlier versions)

@angrave angrave merged commit 8b88f4d into master Dec 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants