Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
nitezs committed Sep 17, 2023
1 parent be9bdd2 commit 4f4a633
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion api/controller/short_link.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,5 +46,5 @@ func ShortLinkGetHandler(c *gin.Context) {
c.String(404, "未找到短链接")
return
}
c.Redirect(302, "/"+shortLink.Url)
c.Redirect(302, "../"+shortLink.Url)
}
2 changes: 1 addition & 1 deletion api/templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ <h2>sub2clash</h2>
function generateShortLink() {
const apiShortLink = document.getElementById("apiShortLink");

axios.post("/short", {
axios.post("./short", {
"url": generateURI()
}, {
headers: {
Expand Down

0 comments on commit 4f4a633

Please sign in to comment.