redirect on 404

Open
#134 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
30/100
Issue type
Feature
Clarity
Needs clarification
Activity status
Stale
Tech stack
python
Domain
backend, devtools

Research direction

Start by locating the Python livereload server's handling for requests that produce “404: Not Found”; the issue does not name a file, entry point, or test. Define how a user-selected page such as index.html should be used for missing pages, then verify that the requested fallback behavior works without breaking normal responses.

Written by the indexing model from the issue text.

Description

type: feature

How can I redirect to a page of my choice (e.g. index.html) when a page is not found?
Right now, the server only displays "404: Not Found".

Thanks!

Dominant language
Python
Stars
1.1k
Forks
149
PR merge metrics
No merged PRs in 30d

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

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 lepture/python-livereload

All issues in lepture/python-livereload

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.