Fix page paths

Update PostListPageGenerator.swift
This commit is contained in:
Christoph Hagen
2025-01-07 10:31:46 +01:00
parent f8150e0809
commit dd2b7d6cd2
7 changed files with 31 additions and 8 deletions

View File

@ -2,6 +2,7 @@ import Foundation
struct PostFeedPageNavigation {
/// Includes a leading slash
let linkPrefix: String
let currentPage: Int
@ -15,7 +16,7 @@ struct PostFeedPageNavigation {
}
private func pageLink(_ page: Int) -> String {
"href='/\(linkPrefix)/\(page)'"
"href='\(linkPrefix)/\(page)'"
}
private func addPreviousButton(to result: inout String) {