Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • G gitlabhq1
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 21
    • Issues 21
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 12
    • Merge requests 12
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Infrastructure Registry
  • Analytics
    • Analytics
    • CI/CD
    • Repository
    • Value stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • gpt
  • large_projects
  • gitlabhq1
  • Issues
  • #9547

Closed
Open
Created Aug 10, 2015 by Administrator@rootOwner

is gitlab api's user avatar_url relative path ?

Created by: letusfly85

sumary

is gitlab api's user avatar_url relative path ?

Hi, I use gitlab v7.13.0

I use gitlab api and expected for avatar_url with absolute path like below

https://github.com/gitlabhq/gitlabhq/blob/master/doc/api/users.md

However, I got relative path like "avatar_url":"/uploads/user/avatar/2/hoge.jpg",

Is this situation right?

Steps to reproduce

  1. generate private token
  2. get $GITLAB_ROOT/users/:id

Expected behavior

"avatar_url":"https://my.gitlab.com/gitlab/uploads/user/avatar/2/hoge.jpg",

Observed behavior

"avatar_url":"/uploads/user/avatar/2/hoge.jpg",

Assignee
Assign to
Time tracking