From 4d93061b1fc0e65eae035839e70cb8cb02ab43df Mon Sep 17 00:00:00 2001 From: Aaron Delaney Date: Mon, 14 Mar 2016 00:26:06 +0000 Subject: [PATCH 01/27] Fix stream links --- server/views/partials/footer.ejs | 2 +- server/views/partials/header.ejs | 2 +- server/views/stream_index.ejs | 3 ++- server/views/stream_plaintext.ejs | 20 ++++++++++++++++++++ 4 files changed, 24 insertions(+), 3 deletions(-) create mode 100644 server/views/stream_plaintext.ejs diff --git a/server/views/partials/footer.ejs b/server/views/partials/footer.ejs index 2cced08..3a163c4 100644 --- a/server/views/partials/footer.ejs +++ b/server/views/partials/footer.ejs @@ -11,7 +11,7 @@ <% if (typeof page_length != "undefined") { %> $("#page_length").change(_ => { - window.location.href = "/stream/" + $("#page_length").val() + "/<%= page - 1 > 0? page - 1 : 0 %>"; + window.location.href = "/stream?page_length=" + $("#page_length").val() + "page=<%= page - 1 > 0? page - 1 : 0 %>"; }); <% } %> }); diff --git a/server/views/partials/header.ejs b/server/views/partials/header.ejs index 41dc0fb..d4d72b8 100644 --- a/server/views/partials/header.ejs +++ b/server/views/partials/header.ejs @@ -36,7 +36,7 @@