Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Link to online docs broken #389

Open
tanders opened this issue Oct 21, 2024 · 3 comments
Open

Link to online docs broken #389

tanders opened this issue Oct 21, 2024 · 3 comments

Comments

@tanders
Copy link

tanders commented Oct 21, 2024

The mir_eval README links to the documentation for this project at https://craffel.github.io/mir_eval/. However, when trying to visit that page I am told "File not found” (404 error). Has the documentation perhaps been moved so that this link should be updated?

Thanks a lot

Best wishes,
Torsten Anders

@bmcfee
Copy link
Collaborator

bmcfee commented Oct 21, 2024

Thanks for noting this. We moved the repo to a new organization last week, and it looks like github does not automatically forward old addresses.

@craffel If you can add a redirect from your craffel.github.io repo to the new URL https://mir-evaluation.github.io/mir_eval/ - then we can transition this gracefully.

Ye olde chatbot says this should work in lieu of proper server-side redirects (which gh pages apparently doesn't do):

  • mir_eval/index.html
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <script type="text/javascript">
        // Get the current URL path after /mir_eval/
        var path = window.location.pathname.replace('/mir_eval/', '');
        // Redirect to the new GitHub Pages site, maintaining the same path
        window.location.href = 'https://mir-evaluation.github.io/mir_eval/' + path;
    </script>
    <title>Page Moved</title>
</head>
<body>
    <p>If you are not redirected, click <a href="https://mir-evaluation.github.io/mir_eval/">here</a>.</p>
</body>
</html>

@craffel
Copy link
Collaborator

craffel commented Oct 22, 2024

Done!

@tanders
Copy link
Author

tanders commented Oct 22, 2024

Thanks a lot for the quick update!

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

No branches or pull requests

3 participants