Skip to content

Commit

Permalink
修复重定向问题
Browse files Browse the repository at this point in the history
  • Loading branch information
adlered committed Jan 9, 2025
1 parent 89cc7db commit f245d3d
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/main/java/org/b3log/symphony/util/Markdowns.java
Original file line number Diff line number Diff line change
Expand Up @@ -457,11 +457,13 @@ public void tail(org.jsoup.nodes.Node node, int depth) {
}

if (!MediaPlayers.isMedia(src)) {
src = URLs.encode(src);
//src = URLs.encode(src);
//a.attr("href", Latkes.getServePath() + "/forward?goto=" + src);
a.tagName("p");
a.html(src);
}
a.attr("target", "_blank");
a.attr("rel", "nofollow");
//a.attr("target", "_blank");
//a.attr("rel", "nofollow");
});
doc.outputSettings().prettyPrint(false);

Expand Down

0 comments on commit f245d3d

Please sign in to comment.