processwire / processwire-requests

ProcessWire feature requests.
39 stars 0 forks source link

Multi-Language support for template setting "Access > Login redirect URL or page ID to render" #486

Open WebWorkingMan opened 1 year ago

WebWorkingMan commented 1 year ago

I see no option to set an URL per language. I wan't to redirect e.g. euch user language to it's own login page

//default
/protected/ > /login/{id}

// English -> not working at the moment
/en/protected > /en/login/{id}

Current vs. suggested behavior

Only one URL field is available, the $user->language is not respected.

Why would the enhancement be useful to users?

To use this without writing individual hooks for each website.

Optional: Screenshots/Links that demonstrate the enhancement

2023-03-29 14_00_00-Template bearbeiten_ Protected Basic Page (basic-protected)

see also ProcessWire forum: https://processwire.com/talk/topic/28328-templates-access-restictions-on-multilanguage-site/#comment-231631