# HG changeset patch # User Sebastien Jodogne # Date 1348644410 -7200 # Node ID ebce15865cce1278248f405be25c79af51fb9c10 # Parent a842914576082e61a5fa32ad4b0c36c169592e2b relative redirection diff -r a84291457608 -r ebce15865cce OrthancServer/OrthancRestApi.cpp --- a/OrthancServer/OrthancRestApi.cpp Tue Sep 25 15:01:06 2012 +0200 +++ b/OrthancServer/OrthancRestApi.cpp Wed Sep 26 09:26:50 2012 +0200 @@ -392,7 +392,7 @@ { if (method == "GET") { - output.Redirect("/app/explorer.html"); + output.Redirect("app/explorer.html"); } else { @@ -655,7 +655,13 @@ } catch (OrthancException&) { - output.Redirect("/app/images/Unsupported.png"); + std::string root = ""; + for (size_t i = 1; i < uri.size(); i++) + { + root += "../"; + } + + output.Redirect(root + "app/images/Unsupported.png"); return; } }