Page 1 of 1

AutoHotkey v2 version file

Posted: 06 Jun 2022, 14:25
by iPhilip
It should be
Can someone update the file?

Thank you.

Re: AutoHotkey v2 version file  Topic is solved

Posted: 06 Jun 2022, 16:21
by joedf
Good catch! Thanks, updated! :+1:

@lexikos FYI

Re: AutoHotkey v2 version file

Posted: 06 Jun 2022, 17:46
by iPhilip
Thank you. :)

Re: AutoHotkey v2 version file

Posted: 07 Jun 2022, 09:01
by kczx3
Also, the download button from the homepage for V2 isn't working for me. The download link in Lexikos' announcement post is https://www.autohotkey.com/download/2.0/AutoHotkey_2.0-beta.4.zip and it works. The URL for the download V2 button from the homepage is https://www.autohotkey.com/download/ahk-v2.zip however it seems to do nothing for me. Just a blank page and nothing downloads.

Re: AutoHotkey v2 version file

Posted: 07 Jun 2022, 09:40
by joedf
I checked the redirects and permissions, I even cleared cloudflare cache for https://www.autohotkey.com/download/ahk-v2.zip
It should work, but it doesn't. @lexikos The .htaccess has a note to say to let you change things there. Take a look?
@tank FYI

Re: AutoHotkey v2 version file

Posted: 07 Jun 2022, 21:37
by lexikos
I don't think my scripts touch .htaccess anymore. They used to write the new URL for each release. Isn't it handled via a php script now?

Re: AutoHotkey v2 version file

Posted: 07 Jun 2022, 22:38
by joedf
.htaccess redirecting to a php script which reads version.txt ...

Re: AutoHotkey v2 version file

Posted: 08 Jun 2022, 03:37
by lexikos
@joedf
It is because you put a newline at the end of the version number in version.txt. I fixed it.

An odd thing I noticed, if one tries to directly access the php script or any invalid URL under /download/, it loads a broken version of the home page.
https://www.autohotkey.com/download/nope

Re: AutoHotkey v2 version file

Posted: 08 Jun 2022, 10:23
by joedf
@lexikos That's it! I was thinking that and went back to check, but I guess I didn't look it correctly. Glad it's fixed, thanks for looking into it!
I'll add whitespace trim to the php scripts, just in case.

Yes, I've noticed this too. The 404 page is no longer being displayed... I'll have a look.
EDIT: okay, should be fixed now. There may be some subdirectories that may not show it, but for now most should be covered.
I've also updated the download page to use the svg logo when possible.