I created issue 1004 and pull request 1006 to address non-relative paths in URL of _default app

28 views
Skip to first unread message

Davidiam

unread,
Oct 20, 2025, 3:32:19 AMOct 20
to py4web
I created a pull request as the paths for the _dashboard, examples and documentation of the default app are not relative paths and therefore do not work when using url_prefix.

static/index.html change:
Before:
      <a class="btn" href="/_dashboard">Dashboard</a>
      <a class="btn" href="/_documentation">Documentation</a>
      <a class="btn" href="/showcase">Examples</a>
After:
      <a class="btn" href="_dashboard">Dashboard</a>
      <a class="btn" href="_documentation">Documentation</a>
      <a class="btn" href="showcase">Examples</a>

I tested this change in py4web both with and without url_prefix and they both worked for me.

Kind Regards,
David

Davidiam

unread,
Nov 10, 2025, 1:14:35 AM (4 days ago) Nov 10
to py4web
I missed one in the index.html :

Before:
<img class="logo" src="/static/images/logo.png" />

After:
<img class="logo" src="static/images/logo.png" />

We are currently requesting to our customers to replace the index.html manually after every installation, so it would be nice to find a solution to this issue.

Kind Regards,
David
Reply all
Reply to author
Forward
0 new messages