Skip to content

The buttons on the default app do not work when using a url_prefix as the links in the html are not relative paths. #1004

@DavidiBeMe

Description

@DavidiBeMe

Steps to reproduce the issue:

  • Install py4web
  • run py4web using --url_prefix
  • Go to the py4web application your browser (this will open the initial landing page for py4web)
  • Click on the button for the _dashboard app
    you will get a 404 error message as the url will be wrong.

The solution is to remove the leading slashes in the html source for all of the buttons which link to apps. this makes the paths relative and it will work with the --url_prefix option

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions