Skip to content

Webeditor - [UI] Wrong avatar uri when creating new file #3577

Closed
@rugk

Description

@rugk
  • Gogs version (or commit ref): v0.9.97
  • Operating system: Debian
  • Database (use [x]):
    • PostgreSQL
    • MySQL
    • SQLite
    • Not relevant
  • Can you reproduce the bug at https://try.gogs.io:
    • Yes (provide example URL)
    • No (because it is configured differently)
    • Not relevant
  • Log gist: not relevant

Description

I have installed Gogs in a subdirectory and set ROOT_URL to the new value (assume it is set to https://example.com/mysubdir here).

So now here is how the page for creating a new file with the web editor looks:

filecreationavatarissue

In the console I can see that Gogs tries to load the avatars from https://example.com/mysubdir/mysubdir/avatars/xx instead of https://example.com/mysubdir/avatars/xx.
Note that the avatar in the upper right is however loaded correctly.

Gogs is running behind nginx as a reverse proxy.

Metadata

Metadata

Assignees

No one assigned

    Labels

    💊 bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions