Skip to content

fix(nginx): use rewrite instead of return for trailing slash redirect#2226

Merged
barjin merged 1 commit intomasterfrom
claude/slack-add-queue-index-nk5XI
Feb 5, 2026
Merged

fix(nginx): use rewrite instead of return for trailing slash redirect#2226
barjin merged 1 commit intomasterfrom
claude/slack-add-queue-index-nk5XI

Conversation

@B4nan
Copy link
Copy Markdown
Member

@B4nan B4nan commented Feb 5, 2026

Changes the trailing slash redirect from using return with location regex to using rewrite directive inside the location block. Also removes quotes from the regex pattern to match the style of other regex locations in the config.

This should fix the issue where the previous approach wasn't working.

Slack thread: https://apify.slack.com/archives/C0L33UM7Z/p1770281199186039

https://claude.ai/code/session_01GqcrG6JU9Y1YaSA5ns87Yz

Changes the trailing slash redirect from using `return` with location
regex to using `rewrite` directive inside the location block. Also
removes quotes from the regex pattern to match the style of other
regex locations in the config.

This should fix the issue where the previous approach wasn't working.

Slack thread: https://apify.slack.com/archives/C0L33UM7Z/p1770281199186039

https://claude.ai/code/session_01GqcrG6JU9Y1YaSA5ns87Yz
@cursor
Copy link
Copy Markdown

cursor Bot commented Feb 5, 2026

You have run out of free Bugbot PR reviews for this billing cycle. This will reset on February 24.

To receive reviews on all of your PRs, visit the Cursor dashboard to activate Pro and start your 14-day free trial.

@github-actions github-actions Bot added this to the 133rd sprint - Tooling team milestone Feb 5, 2026
@github-actions github-actions Bot added the t-tooling Issues with this label are in the ownership of the tooling team. label Feb 5, 2026
@B4nan B4nan added the adhoc Ad-hoc unplanned task added during the sprint. label Feb 5, 2026
@apify-service-account
Copy link
Copy Markdown

Preview for this PR was built for commit 24f61f8 and is ready at https://pr-2226.preview.docs.apify.com!

@B4nan
Copy link
Copy Markdown
Member Author

B4nan commented Feb 5, 2026

Testing in production ™️ 😭

Third time's the charm?

@B4nan B4nan requested a review from barjin February 5, 2026 10:21
@barjin barjin merged commit df81b2e into master Feb 5, 2026
13 of 14 checks passed
@barjin barjin deleted the claude/slack-add-queue-index-nk5XI branch February 5, 2026 10:31
@barjin
Copy link
Copy Markdown
Member

barjin commented Feb 5, 2026

Just fyi this didn't fix it (the behaviour is the same as before all these changes, i.e., trailing slashes still return 404s), I don't see any other issues, so not reverting for now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

adhoc Ad-hoc unplanned task added during the sprint. t-tooling Issues with this label are in the ownership of the tooling team.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants