mirror of
https://codeberg.org/VnPower/PixivFE
synced 2024-12-06 19:16:23 +01:00
Fix: don't use urlx for pagination
goware/urlx fails if the supplied URL doesn't contain a host? (The URL passed to the CreatePaginator() template function was actually a path, which did not contain a host or a scheme.)
This commit is contained in:
@@ -8,8 +8,6 @@ import (
|
||||
"regexp"
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
"github.com/goware/urlx"
|
||||
|
||||
"codeberg.org/vnpower/pixivfe/v2/core"
|
||||
)
|
||||
@@ -141,7 +139,7 @@ func CreatePaginator(base, ending string, current_page, max_page int) HTML {
|
||||
pages += `<div class="pagination-buttons">`
|
||||
{ // "jump to page" <form>
|
||||
hidden_section := ""
|
||||
urlParsed, err := urlx.Parse(base)
|
||||
urlParsed, err := url.Parse(base)
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user