CB/fix: check if Link is present in ctx before trying to use it #129

Open
0ko wants to merge 1 commit from 0ko/footer-js-fix into codeberg-14 AGit
Contributor

The custom code at the bottom of the footer (from !114) was breaking JS on some pages where Link is not present in ctx.

I only have the Forgejo installation page as an example, which makes this issue not user facing unless someone at Codeberg wants to lift INSTALL_LOCK in base.ini just for fun after reading this.

The custom code at the bottom of the footer (from !114) was breaking JS on some pages where `Link` is not present in `ctx`. I only have the Forgejo installation page as an example, which makes this issue not user facing unless someone at Codeberg wants to lift `INSTALL_LOCK` in base.ini just for fun after reading this.
The custom code at the bottom of the footer was breaking JS on some pages where `Link` is not present in `ctx`.

I only have the Forgejo installation page as an example, which makes this issue not user facing unless someone at Codeberg wants to lift `INSTALL_LOCK` in base.ini just for fun after reading this.
0ko requested reviews from Beowulf, Gusted 2026-03-01 18:24:41 +01:00
This pull request can be merged automatically.
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin +refs/pull/129/head:0ko/footer-js-fix
git switch 0ko/footer-js-fix

Merge

Merge the changes and update on Forgejo.
git switch codeberg-14
git merge --no-ff 0ko/footer-js-fix
git switch 0ko/footer-js-fix
git rebase codeberg-14
git switch codeberg-14
git merge --ff-only 0ko/footer-js-fix
git switch 0ko/footer-js-fix
git rebase codeberg-14
git switch codeberg-14
git merge --no-ff 0ko/footer-js-fix
git switch codeberg-14
git merge --squash 0ko/footer-js-fix
git switch codeberg-14
git merge --ff-only 0ko/footer-js-fix
git switch codeberg-14
git merge 0ko/footer-js-fix
git push origin codeberg-14
Sign in to join this conversation.
No reviewers
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
Codeberg-Infrastructure/forgejo!129
No description provided.