-
-
Notifications
You must be signed in to change notification settings - Fork 227
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
language code bug when save as ca-valencia or any code with more than 5 characters #1667
Comments
this could well be an admin plugin specific issue. Are there any issues if you manually create the |
if I do that I do have frparis in the language dropdown list for my page but when I save it redirects me to the login page. |
My current grav version is 1.5.6 was thinking maybe upgrade to see if the issue still occurs |
Don't think it will make a difference. Nothing changed regarding languages between 1.5 and 1.6. I'm looking into it |
Ok, testing so far. Without admin, just creating a |
What you described with redirecting you to login, is related to admin right? I see that also. Moving this to admin repo. |
I think so, I must login again to re-access admin |
Oh, no, it's just that it redirects to http://localhost/frparis/admin/pages/home instead of http://localhost/admin/pages/home |
ok, this is a multi-part issue.. there actually are some legit Grav side issues.. I think I have addressed these here: getgrav/grav@4f83b5d Now I need to tackle the admin issues that are related to the saving of the filenames. |
I kept on searching to find a temporary fix. now the filename is correct but it still redirect to Maybe redirection path is somewhere in the taskSaveas at line 2324 function... |
Please try with the Fix above, this should handle the different scenarios safely. |
The redirection to login issue is sorted by the commit in grav i referenced a little further above. |
works perfect! thanks! |
They will be in next set of releases |
As I will have more than 170 cities,
|
Hi,
I would like tom ake a special use of the language. Instead of language I would use a city name of the same language.
I noticed if the language code you add in system.yaml is more than 5 character,
the file that is writen does'nt work correctly.
For instance if I add language fr-paris and in my page I save as frparis,
grav redirects me to login and the file written looks like this default.frparis.frparis.md
whereas if the language code is no morethan 5 character like paris, it's working and the file is written properly : default.paris.md
If I try with ca-valencia which is in the laguage code array (LanguageCodes.php), it's the same.
Does anyone know a way I can use language code that is more than 5 characters?
Thanks
The text was updated successfully, but these errors were encountered: