Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
), user will be taken back to last opened page after making changes in Advanced Settings.

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@4601 6c8d7289-2bf4-0310-a012-ef5d649a1542
  • Loading branch information
low012 committed Mar 25, 2008
1 parent 8d6a13b commit 8e889de
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion htroot/SettingsAck_p.html
Expand Up @@ -220,7 +220,7 @@ <h2>Settings Receipt:</h2>
::<!-- 31: Cralwer settings, maxFtpFileSize error -->
<p class="error">Invalid maximum file size for ftp crawler: <tt>#[crawler.http.maxFileSize]#</tt></p>
#(/info)#
<p>You can now go back to the <a href="Settings_p.html">Settings</a> page if you want to make more changes.</p>
<p>You can now go back to the <a href="#[referer]#">Settings</a> page if you want to make more changes.</p>
#%env/templates/footer.template%#
</body>
</html>
4 changes: 4 additions & 0 deletions htroot/SettingsAck_p.java
Expand Up @@ -83,6 +83,10 @@ public static serverObjects respond(httpHeader header, serverObjects post, serve
// return variable that accumulates replacements
serverObjects prop = new serverObjects();

// get referer for backlink
String referer = (String) header.get(httpHeader.REFERER);
prop.put("referer", (referer == null) ? "Settings_p.html" : referer);

//if (post == null) System.out.println("POST: NULL"); else System.out.println("POST: " + post.toString());

if (post == null) {
Expand Down

0 comments on commit 8e889de

Please sign in to comment.