Update SPA to include project name for Codeberg #12

Open
opened 2026-10-23 23:16:50 +00:00 by lichenblankie · 0 comments

Update our SPA to include the project name in the "to" URL for redirects to continue to work.

For example, if your site is example.org/project and it uses this _redirects file:

/* /index.html 200

... you will need to update it to have the following contents:

/* /project/index.html 200

If you do not do this, users of your SPA will receive an "invalid redirect" error when navigating to any URL except for //example.org/project/; for example, //example.org/project/foo will produce this error.

https://codeberg.org/Codeberg/Community/issues/3203#

Update our SPA to include the project name in the "to" URL for redirects to continue to work. > For example, if your site is example.org/project and it uses this _redirects file: > > /* /index.html 200 > > ... you will need to update it to have the following contents: > > /* /project/index.html 200 > > If you do not do this, users of your SPA will receive an "invalid redirect" error when navigating to any URL except for //example.org/project/; for example, //example.org/project/foo will produce this error. https://codeberg.org/Codeberg/Community/issues/3203#
lichenblankie changed title from Uopdate SPA to include project name for Codeberg to Update SPA to include project name for Codeberg 2026-10-23 23:16:56 +00:00
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
lichenblankie/tinyweb#12
No description provided.