This was brought up in our forum: https://forum.backdropcms.org/forum/how-fix-inconsistent-page-numbers#co...
In all places where I have paginated content, there's a discrepancy between the page number in the URL and the actual page. The current behaviour seems to be: Page number in URL = (Actual page number) - 1. This could be confusing for users copying/pasting the URL and being taken to a different page number.
"Chronic" Drupal/Backdrop users have explained that this is how things work, and that it's because the counter is zero-based, but this seems to be another "Drupalism" (and now "Bakdropism"). As the user went on to say:
I'm not using drupal, so maybe that's why it looked a bit more confusing to me :)


Perhaps we could introduce an option in views that would allow customizing this?
- respective issue for Views 7.x: Array index instead actual page number
- issue for Drupal core Views: Make pager start counting from 1, not 0
- module that offers this as a feature (since version 8.x-2.0): https://www.drupal.org/project/pagerer (the commit that introduced the feature)
- various threads that discuss this:
Recent comments
In a blog post titled "Github Tips and Tricks for Contrib Maintainers", I'd like to see some of the following topics: When is the README sufficient for documentation? When should...
Github Tips and Tricks for Contrib Maintainers
Thanks Alejandro. That was the clues I needed.
Ubercart - Programmatically add product to cart and straight to Checkout
Have you tried uc_cart_add_item()? You need to provide the nid of the product. Then you can use backdrop_goto('cart/checkout'); to send the user to the checkout screen. uc_cart_add_item...
Ubercart - Programmatically add product to cart and straight to Checkout