Random game link failing

Information from and to the site administrators.

Moderator: Alastair

Message
Author
ahope1
Posts: 68
Joined: Sun Mar 18, 2012 7:33 pm

Random game link failing

#1 Post 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.)
User avatar
Strident
Posts: 1125
Joined: Fri Aug 12, 2011 2:57 pm

Re: Random game link failing

#2 Post 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
User avatar
Alex
Posts: 1033
Joined: Tue Oct 24, 2006 10:45 pm
Location: Netherlands

Re: Random game link failing

#3 Post by Alex »

I replaced the slash with an underscore. This solved the problem.
User avatar
Strident
Posts: 1125
Joined: Fri Aug 12, 2011 2:57 pm

Re: Random game link failing

#4 Post by Strident »

User avatar
Gunness
Site Admin
Posts: 1939
Joined: Tue Dec 07, 2004 7:04 pm
Location: Copenhagen, Denmark
Contact:

Re: Random game link failing

#5 Post by Gunness »

Renamed it as MisGuided
User avatar
Garry
Posts: 500
Joined: Sun Oct 28, 2012 11:43 am
Location: Sydney, Australia
Contact:

Re: Random game link failing

#6 Post by Garry »

Have you tried using a double slash (//)?
User avatar
Gunness
Site Admin
Posts: 1939
Joined: Tue Dec 07, 2004 7:04 pm
Location: Copenhagen, Denmark
Contact:

Re: Random game link failing

#7 Post by Gunness »

Yes. Doesn't work either. Anyway, I hope people will be able to find the game.
Mr Creosote
Posts: 1121
Joined: Tue Sep 22, 2009 9:23 am
Contact:

Re: Random game link failing

#8 Post by Mr Creosote »

The slash is well encoded in the URI. Must be an issue in the rewrite module of Apache.
User avatar
Gunness
Site Admin
Posts: 1939
Joined: Tue Dec 07, 2004 7:04 pm
Location: Copenhagen, Denmark
Contact:

Re: Random game link failing

#9 Post 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 :)
Mr Creosote
Posts: 1121
Joined: Tue Sep 22, 2009 9:23 am
Contact:

Re: Random game link failing

#10 Post 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?
User avatar
Gunness
Site Admin
Posts: 1939
Joined: Tue Dec 07, 2004 7:04 pm
Location: Copenhagen, Denmark
Contact:

Re: Random game link failing

#11 Post by Gunness »

If it doesn't take more effort than that, then certainly!
Mr Creosote
Posts: 1121
Joined: Tue Sep 22, 2009 9:23 am
Contact:

Re: Random game link failing

#12 Post 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.
User avatar
Garry
Posts: 500
Joined: Sun Oct 28, 2012 11:43 am
Location: Sydney, Australia
Contact:

Re: Random game link failing

#13 Post 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/
Mr Creosote
Posts: 1121
Joined: Tue Sep 22, 2009 9:23 am
Contact:

Re: Random game link failing

#14 Post by Mr Creosote »

Garry wrote: Fri Dec 27, 2019 2:36 pmWhy do you include the game name at all?
Search engines love it.
User avatar
Garry
Posts: 500
Joined: Sun Oct 28, 2012 11:43 am
Location: Sydney, Australia
Contact:

Re: Random game link failing

#15 Post 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 '-'.
Post Reply