Skip to content

Commit

Permalink
fix(RichLabel): use basename instead of splitting for tags
Browse files Browse the repository at this point in the history
  • Loading branch information
GeopJr committed Jun 18, 2023
1 parent 15e0921 commit 80ae54c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Widgets/RichLabel.vala
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ public class Tuba.Widgets.RichLabel : Adw.Bin {
}

if ("/tags/" in url) {
var from_url = url.split ("/tags/")[1];
var from_url = Path.get_basename (url);
var decoded = Uri.unescape_string (from_url) ?? from_url;
var param_start = decoded.index_of_char ('?');
if (param_start != -1)
Expand Down

0 comments on commit 80ae54c

Please sign in to comment.