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 f6e47de commit 89cc7db
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/main/java/org/b3log/symphony/processor/Router.java
Original file line number Diff line number Diff line change
Expand Up @@ -139,8 +139,8 @@ private static void registerProcessors() {
final StatisticProcessor statisticProcessor = beanManager.getReference(StatisticProcessor.class);
Dispatcher.get("/statistic", statisticProcessor::showStatistic, anonymousViewCheckMidware::handle);
// 跳转页
final ForwardProcessor forwardProcessor = beanManager.getReference(ForwardProcessor.class);
Dispatcher.get("/forward", forwardProcessor::showForward);
//final ForwardProcessor forwardProcessor = beanManager.getReference(ForwardProcessor.class);
//Dispatcher.get("/forward", forwardProcessor::showForward);
// 领域
final DomainProcessor domainProcessor = beanManager.getReference(DomainProcessor.class);
Dispatcher.get("/domain/{domainURI}", domainProcessor::showDomainArticles, anonymousViewCheckMidware::handle);
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/org/b3log/symphony/util/Markdowns.java
Original file line number Diff line number Diff line change
Expand Up @@ -458,7 +458,7 @@ public void tail(org.jsoup.nodes.Node node, int depth) {

if (!MediaPlayers.isMedia(src)) {
src = URLs.encode(src);
a.attr("href", Latkes.getServePath() + "/forward?goto=" + src);
//a.attr("href", Latkes.getServePath() + "/forward?goto=" + src);
}
a.attr("target", "_blank");
a.attr("rel", "nofollow");
Expand Down

0 comments on commit 89cc7db

Please sign in to comment.