Skip to content
  • Igor Drozdov's avatar
    Redirect API requests to moved projects · fa19b60b
    Igor Drozdov authored
    When a project is moved and being accessed by the old full path
    our API returns 404. However, we should redirect user to the
    existing link.
    
    This commit:
    
    - When request is GET, finds a project and takes redirect
    routes into account
    - If the specified full path is not equal to the current
    full path, 301 (Moved permanently) is returned with Location
    set as a header
    - The Location header contains the new url that specifies id
    
    Changelog: fixed
    fa19b60b
Loading