Use pagy_prev_url
with trim extra?
#761
-
Even with the trim extra enabled, Is there a way to trim Relevant code: pagy/gem/lib/pagy/extras/trim.rb Lines 4 to 29 in d70e443 pagy/gem/lib/pagy/extras/pagy.rb Lines 49 to 52 in d70e443 |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi @marckohlbrugge, From the Changelog of v10: ##### `trim` (discontinued feature)
- It was mostly useless and half-backed, causing a lot of complications in the ruby and javascript code for no real benefit.
- Use a proper way to address your requirement, like using URL rewriting at the HTTP server level. We understand that the discontinuation of the trim extra may be disruptive, and we sincerely apologize for any problems this causes. We appreciate your understanding. |
Beta Was this translation helpful? Give feedback.
Hi @marckohlbrugge,
the trim has always been very problematic. Pagy is just the wrong place to put the trim logic. Indeed, we will discontinue the extra in the upcoming v10.
From the Changelog of v10:
We understand that the discontinuation of the trim extra may be disruptive, and we sincerely apologize for any problems this causes. We appreciate your understanding.