urlencode cursors, otherwise it fails on # and similar
Some checks failed
Build Multiarch Container Image / call-reusable-workflow (push) Failing after 0s

This commit is contained in:
Sebastian Hugentobler 2024-05-12 21:03:46 +02:00
parent 248387b355
commit 70acfb1230
Signed by: shu
GPG Key ID: BB32CF3CA052C2F0
6 changed files with 9 additions and 9 deletions

2
Cargo.lock generated
View File

@ -889,7 +889,7 @@ dependencies = [
[[package]] [[package]]
name = "little-hesinde" name = "little-hesinde"
version = "0.1.2" version = "0.1.3"
dependencies = [ dependencies = [
"calibre-db", "calibre-db",
"clap", "clap",

View File

@ -1,6 +1,6 @@
[package] [package]
name = "little-hesinde" name = "little-hesinde"
version = "0.1.2" version = "0.1.3"
edition = "2021" edition = "2021"
license = { workspace = true } license = { workspace = true }
authors = { workspace = true } authors = { workspace = true }

View File

@ -71,7 +71,7 @@ pub mod opds {
pub mod templates; pub mod templates;
pub const APP_NAME: &str = "little-hesinde"; pub const APP_NAME: &str = "little-hesinde";
pub const VERSION: &str = "0.1.2"; pub const VERSION: &str = "0.1.3";
/// Internal marker data in lieu of a proper `Accept` header. /// Internal marker data in lieu of a proper `Accept` header.
#[derive(Debug, Clone, Copy)] #[derive(Debug, Clone, Copy)]

View File

@ -1,12 +1,12 @@
{% extends "base" %} {% extends "base" %}
{% block title %} {% block title %}
{% if has_previous %} {% if has_previous %}
<a class="secondary" href="/authors/{{ backward_cursor }}/DESC">← back</a> <a class="secondary" href="/authors/{{ backward_cursor | urlencode }}/DESC">← back</a>
{% endif %} {% endif %}
{% if has_previous and has_more %}|{% endif%} {% if has_previous and has_more %}|{% endif%}
{% if has_more %} {% if has_more %}
<a class="secondary" href="/authors/{{ forward_cursor }}/ASC">more →</a> <a class="secondary" href="/authors/{{ forward_cursor | urlencode }}/ASC">more →</a>
{% endif %} {% endif %}
{% endblock title %} {% endblock title %}

View File

@ -1,12 +1,12 @@
{% extends "base" %} {% extends "base" %}
{% block title %} {% block title %}
{% if has_previous %} {% if has_previous %}
<a class="secondary" href="/books/{{ backward_cursor }}/DESC">← back</a> <a class="secondary" href="/books/{{ backward_cursor | urlencode }}/DESC">← back</a>
{% endif %} {% endif %}
{% if has_previous and has_more %}|{% endif%} {% if has_previous and has_more %}|{% endif%}
{% if has_more %} {% if has_more %}
<a class="secondary" href="/books/{{ forward_cursor }}/ASC">more →</a> <a class="secondary" href="/books/{{ forward_cursor | urlencode }}/ASC">more →</a>
{% endif %} {% endif %}
{% endblock title %} {% endblock title %}

View File

@ -1,12 +1,12 @@
{% extends "base" %} {% extends "base" %}
{% block title %} {% block title %}
{% if has_previous %} {% if has_previous %}
<a class="secondary" href="/series/{{ backward_cursor }}/DESC">← back</a> <a class="secondary" href="/series/{{ backward_cursor | urlencode }}/DESC">← back</a>
{% endif %} {% endif %}
{% if has_previous and has_more %}|{% endif%} {% if has_previous and has_more %}|{% endif%}
{% if has_more %} {% if has_more %}
<a class="secondary" href="/series/{{ forward_cursor }}/ASC">more →</a> <a class="secondary" href="/series/{{ forward_cursor | urlencode }}/ASC">more →</a>
{% endif %} {% endif %}
{% endblock title %} {% endblock title %}