From d8175ec04ea00422084e7168e7a96f3c867947a0 Mon Sep 17 00:00:00 2001 From: yggverse Date: Sun, 14 Apr 2024 07:13:16 +0300 Subject: [PATCH] add protocol issue page --- src/Entity/Tab/Page.php | 10 +++++++++- src/Page/Protocol.gmi | 8 ++++++++ 2 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 src/Page/Protocol.gmi diff --git a/src/Entity/Tab/Page.php b/src/Entity/Tab/Page.php index 8dd65d2c..c5d80f2e 100644 --- a/src/Entity/Tab/Page.php +++ b/src/Entity/Tab/Page.php @@ -368,11 +368,19 @@ class Page break; - default: + case str_starts_with($url, 'yoda://'): $this->_openYoda( $url ); + + break; + + default: + + $this->_openYoda( + 'yoda://protocol' + ); } } diff --git a/src/Page/Protocol.gmi b/src/Page/Protocol.gmi new file mode 100644 index 00000000..0ba850d0 --- /dev/null +++ b/src/Page/Protocol.gmi @@ -0,0 +1,8 @@ +# Protocol issue + +At this moment, supported protocols: + +* gemini +* yoda + +=> https://github.com/YGGverse/Yoda/issues Report \ No newline at end of file