Skip to content

fix(web): include base prefix in generated URLs#1403

Merged
Xe merged 3 commits intomainfrom
Xe/fix-preact-static-path
Jan 14, 2026
Merged

fix(web): include base prefix in generated URLs#1403
Xe merged 3 commits intomainfrom
Xe/fix-preact-static-path

Conversation

@Xe
Copy link
Copy Markdown
Contributor

@Xe Xe commented Jan 14, 2026

Forgot to add the base prefix to these URLs. Committed a fix for this and added a test to ensure this does not repeat. Oops!

Closes: #1402

Checklist:

  • Added a description of the changes to the [Unreleased] section of docs/docs/CHANGELOG.md
  • Added test cases to the relevant parts of the codebase
  • Ran integration tests npm run test:integration (unsupported on Windows, please use WSL)
  • All of my commits have verified signatures

Xe added 2 commits January 14, 2026 18:37
Forgot to add the base prefix to these URLs. Committed a fix for this
and added a test to ensure this does not repeat. Oops!

Closes: #1402
Signed-off-by: Xe Iaso <me@xeiaso.net>
Signed-off-by: Xe Iaso <me@xeiaso.net>
@Xe Xe self-assigned this Jan 14, 2026
@Xe Xe enabled auto-merge (squash) January 14, 2026 23:39
Comment thread web/index_test.go Fixed
Comment thread web/index_test.go Fixed
Comment thread web/index_test.go Fixed
Comment thread web/index.templ
</head>
<body id="top">
@honeypotLink(fmt.Sprintf("%shoneypot/%s/init", anubis.APIPrefix, uuid.NewString()))
@honeypotLink(anubis.BasePrefix + fmt.Sprintf("%shoneypot/%s/init", anubis.APIPrefix, uuid.NewString()))

Check warning

Code scanning / check-spelling

Candidate Pattern Warning

Line matches candidate pattern (Alternative printf) %(?:s(?=[a-z]{2,}))(?!%)(?=[_a-zA-Z]+(?!%[^s])\\b)(?=.*?['\"])
Comment thread web/index.templ
</head>
<body id="top">
@honeypotLink(fmt.Sprintf("%shoneypot/%s/init", anubis.APIPrefix, uuid.NewString()))
@honeypotLink(anubis.BasePrefix + fmt.Sprintf("%shoneypot/%s/init", anubis.APIPrefix, uuid.NewString()))

Check warning

Code scanning / check-spelling

Candidate Pattern Warning

Line matches candidate pattern (This does not cover multiline strings, if your repository has them,) %(?:(?:(?:hh?|ll?|[jzt])?[diuoxn]|l?[cs]|L?[fega]|p)(?=[a-z]{2,})|(?:X|L?[FEGA])(?=[a-zA-Z]{2,}))(
Comment thread web/index_templ.go
return templ_7745c5c3_Err
}
templ_7745c5c3_Err = honeypotLink(fmt.Sprintf("%shoneypot/%s/init", anubis.APIPrefix, uuid.NewString())).Render(ctx, templ_7745c5c3_Buffer)
templ_7745c5c3_Err = honeypotLink(anubis.BasePrefix+fmt.Sprintf("%shoneypot/%s/init", anubis.APIPrefix, uuid.NewString())).Render(ctx, templ_7745c5c3_Buffer)

Check warning

Code scanning / check-spelling

Candidate Pattern Warning

Line matches candidate pattern (Alternative printf) %(?:s(?=[a-z]{2,}))(?!%)(?=[_a-zA-Z]+(?!%[^s])\\b)(?=.*?['\"])
Comment thread web/index_templ.go
return templ_7745c5c3_Err
}
templ_7745c5c3_Err = honeypotLink(fmt.Sprintf("%shoneypot/%s/init", anubis.APIPrefix, uuid.NewString())).Render(ctx, templ_7745c5c3_Buffer)
templ_7745c5c3_Err = honeypotLink(anubis.BasePrefix+fmt.Sprintf("%shoneypot/%s/init", anubis.APIPrefix, uuid.NewString())).Render(ctx, templ_7745c5c3_Buffer)

Check warning

Code scanning / check-spelling

Candidate Pattern Warning

Line matches candidate pattern (This does not cover multiline strings, if your repository has them,) %(?:(?:(?:hh?|ll?|[jzt])?[diuoxn]|l?[cs]|L?[fega]|p)(?=[a-z]{2,})|(?:X|L?[FEGA])(?=[a-zA-Z]{2,}))(
Signed-off-by: Xe Iaso <me@xeiaso.net>
@Xe Xe merged commit ff87aac into main Jan 14, 2026
21 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Some generated links miss BASE_PREFIX

2 participants