Skip to content

Commit

Permalink
Fix redirects for RPB entries from regionalgeschichte.net (RPB-138)
Browse files Browse the repository at this point in the history
  • Loading branch information
fsteeg committed Feb 22, 2024
1 parent 2b42c92 commit dcc9460
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/controllers/nwbib/Application.java
Original file line number Diff line number Diff line change
Expand Up @@ -283,8 +283,9 @@ public static Promise<Result> searchSpatial(final String id, final int from, fin
}

public static Promise<Result> showPl(String name, String db, int index, int zeilen, String s1) {
String url = db.equals("rpb") ? "https://rpb.lbz-rlp.de/" : "https://rppd.lobid.org/";
return Promise
.pure(ok("<head><meta http-equiv='Refresh' content='0; URL=https://rppd.lobid.org/"
.pure(ok("<head><meta http-equiv='Refresh' content='0; URL=" + url
+ HtmlFormat.escape(s1) + "'/></head>").as("text/html"));
}

Expand Down

0 comments on commit dcc9460

Please sign in to comment.