Page 1 of 2

Random game link failing

Posted: Thu May 09, 2019 12:00 am
by ahope1
Hi. The game "Greg Lemon/Soda - Bacardi Feeling!" appeared in the Random Game box on the CASA homepage, but the link doesn't work:
:(

(The URL works if you delete everything after the final slash.)

Re: Random game link failing

Posted: Thu May 09, 2019 6:59 am
by Strident
The game is listed with the title ---> Greg Lemon/Soda - Bacardi Feeling!
I would imagine the '/' in the game name is causing the issue as it's inaccessible even from the search page.

There is also a second game....
Greg Lemon/Hood - Ritter des Rechts
which also has a slash in its name
http://solutionarchive.com/game/id%2C15 ... echts.html

Re: Random game link failing

Posted: Thu May 09, 2019 11:49 am
by Alex
I replaced the slash with an underscore. This solved the problem.

Re: Random game link failing

Posted: Fri Dec 20, 2019 7:51 am
by Strident

Re: Random game link failing

Posted: Fri Dec 20, 2019 10:42 am
by Gunness
Renamed it as MisGuided

Re: Random game link failing

Posted: Fri Dec 20, 2019 11:10 am
by Garry
Have you tried using a double slash (//)?

Re: Random game link failing

Posted: Fri Dec 20, 2019 12:59 pm
by Gunness
Yes. Doesn't work either. Anyway, I hope people will be able to find the game.

Re: Random game link failing

Posted: Fri Dec 20, 2019 4:15 pm
by Mr Creosote
The slash is well encoded in the URI. Must be an issue in the rewrite module of Apache.

Re: Random game link failing

Posted: Fri Dec 20, 2019 5:48 pm
by Gunness
Out of 8,000 games we're talking about around five whose titles have had to be slightly adapted. I hope we'll manage :)

Re: Random game link failing

Posted: Sat Dec 21, 2019 12:30 pm
by Mr Creosote
Sure, but a code workaround (replacing the slash in the URI with something harmless) would be a change of one line. So probably worth it?

Re: Random game link failing

Posted: Sun Dec 22, 2019 3:27 pm
by Gunness
If it doesn't take more effort than that, then certainly!

Re: Random game link failing

Posted: Mon Dec 23, 2019 9:30 am
by Mr Creosote
I'm making an assumption about the code here admittedly, but I can check in a week when I'll be back home.

Re: Random game link failing

Posted: Fri Dec 27, 2019 2:36 pm
by Garry
I just discovered another game that is subject to the slash bug. It's XIV/2. I can now see the issue. The game name is listed correctly, but the link to the game includes the slash in the game name and that looks like it's a separator between folders, hence the html page is not found.

Why do you include the game name at all? I got around the issue by using https://solutionarchive.com/game/id,3656/

Re: Random game link failing

Posted: Fri Dec 27, 2019 5:13 pm
by Mr Creosote
Garry wrote:
Fri Dec 27, 2019 2:36 pm
Why do you include the game name at all?
Search engines love it.

Re: Random game link failing

Posted: Sat Dec 28, 2019 12:34 am
by Garry
Good point, but if you're serious about that, you shouldn't use '+' as a separator between words. You should use '-'. And you shouldn't use underscores '_' as a separator in filenames for screen grabs, maps and solutions. Once again, you should use hyphens '-'.