GET /b

  • SYNOPSIS

    GET /b?branch
    
  • DESCRIPTION

    2025-01-12
    • this endpoint redirects you to the page containing the branch with the given ID, with an anchor on the selected branch.

      2024-01-18
    • since the lookup is dynamic, this provides a method of permalinking to branches even if they are moved across pages.

      2025-01-12
      • the destination URL of the redirect should not be considered permanent!

        2025-01-12
  • RETURN VALUE

    2025-01-12
    • if the lookup is successful, 302 Found is returned with the Location header set to the destination URL as described above.

      2025-01-12
    • if the branch with the given ID cannot be found, HTTP 404 Not Found is returned.

      2025-01-12
    • if no parameters are provided, this page is returned.

      2025-01-12
  • EXAMPLES

    2025-01-12
    • /b?hello
      

      (currently) redirects to

      /about#b-hello
      

      causing the browser to scroll and highlight the branch with ID hello.

      2025-01-12
    • c’mon, give it a whirl

      2024-01-18
      • https://www.youtube.com/watch?v=8Kban1IOQ4M

        2024-01-18