Skip to content

Commit

Permalink
Use client-side redirect to work with rpb.lbz-rlp.de setup (RPB-38)
Browse files Browse the repository at this point in the history
  • Loading branch information
fsteeg committed Nov 23, 2023
1 parent de21a9a commit 774fc83
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/controllers/nwbib/Application.java
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,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) {
return Promise.pure(movedPermanently("https://rppd.lobid.org/" + s1));
return Promise
.pure(ok("<head><meta http-equiv='Refresh' content='0; URL=https://rppd.lobid.org/"
+ s1 + "'/></head>").as("text/html"));
}

/**
Expand Down

0 comments on commit 774fc83

Please sign in to comment.