diff options
-rw-r--r-- | music.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -98,11 +98,11 @@ void MusicDirectory::render(HTTP::Connection::p req, HTTPResponse& res) { for(PathListings::iterator it = directories.begin(); it != directories.end(); it++) { std::string rel_path = it->string().substr(music::root_directory.string().size()); - res.write(boost::str(boost::format("<a href=\"%s\">%s</a><br />") % rel_path % rel_path)); + res.write(boost::str(boost::format("<a href=\"/files%s\">%s</a><br />") % rel_path % rel_path)); } for(PathListings::iterator it = tracks.begin(); it != tracks.end(); it++) { std::string rel_path = it->string().substr(music::root_directory.string().size()); - res.write(boost::str(boost::format("<a href=\"%s\">%s</a><br />") % rel_path % rel_path)); + res.write(boost::str(boost::format("<a href=\"/files%s\">%s</a><br />") % rel_path % rel_path)); } } |