Skip to content

A free and open source instant messaging and VoIP chat app built for friends, groups, and communities.

TypeScript fluxerfluxerapp

fix(marketing): drop the 16x16 favicon link (#1559)

Hampus84cef010a11b
diff --git a/fluxer_marketing/src/routes.rs b/fluxer_marketing/src/routes.rs
index d1df1a2c7..d4a175d00 100644
--- a/fluxer_marketing/src/routes.rs
+++ b/fluxer_marketing/src/routes.rs
@@ -168,6 +168,7 @@ pub fn build_router(config: MarketingConfig) -> Router {
"/static/voice-region-flags/{flag_file}",
get(voice_region_flag_svg),
)
+ .route("/favicon.ico", get(favicon_ico))
.route("/robots.txt", get(robots))
.route("/security.txt", get(security_txt))
.route("/sitemap.xml", get(sitemap))
@@ -1055,6 +1056,11 @@ async fn voice_region_flag_svg(Path(flag_file): Path<String>) -> Response {
}
}
+async fn favicon_ico(State(state): State<AppState>) -> impl IntoResponse {
+ let cdn = state.config.static_cdn_endpoint.trim_end_matches('/');
+ Redirect::permanent(&format!("{cdn}/web/favicon.ico"))
+}
+
async fn robots(State(state): State<AppState>) -> impl IntoResponse {
let base_url = state.config.base_url();
let body = format!("User-agent: *\nAllow: /\nSitemap: {base_url}/sitemap.xml\n");
diff --git a/fluxer_marketing/src/templates/mod.rs b/fluxer_marketing/src/templates/mod.rs
index 19d69bc2f..bd0b40759 100644
--- a/fluxer_marketing/src/templates/mod.rs
+++ b/fluxer_marketing/src/templates/mod.rs
@@ -991,10 +991,8 @@ fn base_document(
link rel="stylesheet" href=(format!("{cdn}/fonts/ibm-plex.css?v=3"));
link rel="stylesheet" href=(format!("{cdn}/fonts/bricolage.css?v=3"));
link rel="stylesheet" href=(format!("{}/static/app.css?v={}", ctx.base_path, ctx.asset_version));
- link rel="icon" type="image/x-icon" href=(format!("{cdn}/web/favicon.ico"));
+ link rel="icon" type="image/png" sizes="192x192" href=(format!("{cdn}/web/android-chrome-192x192.png"));
link rel="apple-touch-icon" href=(format!("{cdn}/web/apple-touch-icon.png"));
- link rel="icon" type="image/png" sizes="32x32" href=(format!("{cdn}/web/favicon-32x32.png"));
- link rel="icon" type="image/png" sizes="16x16" href=(format!("{cdn}/web/favicon-16x16.png"));
@if meta.enable_htmx {
script src=(format!("{}/static/htmx.min.js?v={}", ctx.base_path, ctx.asset_version)) defer {}
}