In a multilanguage site with language prefix, front pages with only prefix (en, sv and the like) are not expired.

Comments

auth’s picture

Attaching patch to add language prefix to front page.

SqyD’s picture

Thanks for your report. I believe we already recently put a fix in place that could have solved this issue for you. Could you please try if the current 7.x dev release fixes your issue? Would appreciate a follow up, thanks!

spleshka’s picture

Version: 7.x-1.x-dev » 7.x-2.x-dev
Status: Active » Fixed

This problem should gone in 7.x-2.x.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

brahimmouhamou’s picture

Issue summary: View changes
Status: Closed (fixed) » Needs work

I'm having the same problem, I have global redirect enabled to always redirect to the domain WITH language prefix. But when enabling the front page to expire, only (/ and /node) get expired.

When enabling 'Include base URL in expires', the language prefix is added but this causes problems with the Varnish module because it concatenates the $base (/) to the paths so you get /http://example.com/en

I bypassed it by disabling the front page option and choosing the 'custom pages' option, here I added my language prefixes (with 'Include base URL in expires' disabled).