Skip to content

[BUG] adminPlugin.GetIndexURL()函数会自动补上"/"前缀,导致丢失域名信息,登录后跳转dashborad界面失败 #668

@atidat

Description

@atidat

bug 描述 [详细地描述 bug,让大家都能理解]

adminPlugin.GetIndexURL()函数会自动补上"/"前缀,导致丢失域名信息,登录后跳转dashborad界面失败

复现步骤 [清晰描述复现步骤,让别人也能看到问题]

期望结果 [描述你原本期望看到的结果]

复现代码 [提供可复现的代码,仓库,或线上示例]

adminPlugin := admin.NewAdmin()
if err := eng.AddConfigFromJSON("./config.json").
AddPlugins(adminPlugin,).
.....

config.json不配置prefix和index信息

版本信息:

  • GoAdmin 版本:1.2.26
  • golang 版本:1.22
  • 浏览器环境:chrome
  • 开发环境:ubuntu24.04

其他信息 [如截图等其他信息可以贴在这里]

Metadata

Metadata

Assignees

No one assigned

    Labels

    🐛bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions