diff --git a/src/app/browser/main/tab/page.cpp b/src/app/browser/main/tab/page.cpp index 8b72e22d..67254a63 100644 --- a/src/app/browser/main/tab/page.cpp +++ b/src/app/browser/main/tab/page.cpp @@ -110,8 +110,8 @@ void Page::update() // Route by status code if (meta[1] == "20") { - // Route by mime type - if (meta[2] == "text/gemini") + // Route by mime type or path extension + if (meta[2] == "text/gemini" || Glib::str_has_suffix(navbar->get_request_path(), ".gmi")) { content->text_gemini( buffer // @TODO diff --git a/src/app/browser/main/tab/page.hpp b/src/app/browser/main/tab/page.hpp index 7b085ee3..ab1fdd37 100644 --- a/src/app/browser/main/tab/page.hpp +++ b/src/app/browser/main/tab/page.hpp @@ -10,6 +10,7 @@ #include #include #include +#include #include #include