Grid pagination 404 when url_prefix set

Open
#969 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
38/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
python
Domain
web-dev

Research direction

Reproduce the issue with py4web setup apps and py4web run apps --port 9765 --url_prefix=/test, then open the stated showcase grid URL and click a page number. Trace the pagination link generation used by example_html_grid/select; done means the link contains /test only once and pagination no longer returns 404.

Written by the indexing model from the issue text.

Description

py4web==1.20250330.2

py4web setup apps # install showcase
py4web run apps --port 9765 --url_prefix=/test

Open http://127.0.0.1:9765/test/showcase/example_html_grid/select

Click page number button at bottom e.g. "1" of table gives a 404 Not Found error as the link contains the url_prefix twice:-

http://127.0.0.1:9765/test/test/showcase/example_html_grid/select?page=1

Dominant language
HTML
Stars
319
Forks
144
Avg merge
6d 20h
Merged PRs (30d)
3

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from web2py/py4web

All issues in web2py/py4web

Similar issues

More Web Dev issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.