Forum:Google never links to main page

When I Google for something, the Wikia shows up as http://Gantz.wikia.com and when that is clicked on it doesn't go straight to the main page of that wikia, but instead gets forwarded to http://Gantz.wikia.com/wiki/Special:MyHome That happens with all Wikias that I know of. How do I change it to go to the page I want it to?  D r e a m Focus  22:50, June 7, 2010 (UTC)
 * Well, you could add the following code to w:c:gantz:MediaWiki:Common.js:

$(function { if (wgPageName == "Special:MyHome") location.href="./Gantz_Wiki"; }); Where Gantz_Wiki is the name of the page you want to go to. Hope that helps. -- 23:03, June 7, 2010 (UTC)

You could, but you would make a lot of people angry that might actually want to use MyHome. The other idea is, since you getting sent there, that means you are logged in. So why not go to Special:Preferences (specifically here) and turn on the option that says "Disable my redirect to My Home" ? that will disable the redirecting feature for YOU. --Uberfuzzy 23:28, June 7, 2010 (UTC)
 * Of course, if community consensus was to disable it, the JavaScript solution would cover everyone. Which would make more sense to have community consensus to disable a feature than Wikia forcing a feature on everyone and requiring the entire community to opt-out.  Otherwise yes, for a setting for you personally the Preferences solution would be much better from a technical standpoint as well (avoiding the Special:MyHome page load entirely). -- 23:51, June 7, 2010 (UTC)
 * Cool! That worked.  It went first to the other place then forwarded quickly to the proper main page.  I'll do that with my other three Wikia as well now.  Thanks for the help.  I can't image anyone actually wants to use MyHome to begin with, it rather useless.   D r e a m Focus  02:30, June 8, 2010 (UTC)


 * That works for Gantz, Voltron, and Sid Meier's Alpha Centauri, but not for Total Annihilation.

$(function { if (wgPageName == "Special:MyHome") location.href="./Main_Page"; });

If the main page is called Main Page, does that create a problem? Everything else is exactly the same. Will someone go over there and click on the MyHome link up top and see if it forwards you. Or just click here  There is no reason anyone would ever use the MyHome page, since the information provided can be found at My Watchlist or My Contributions.  D r e a m Focus  11:36, June 8, 2010 (UTC)
 * Make sure it's at "MediaWiki:Common.js" not "MediaWiki:Common.js:". You added a colon to the end. -- 12:29, June 8, 2010 (UTC)
 * Thanks! That worked.  Now all four Wikis do what I want them to.    D r e a m Focus  12:36, June 8, 2010 (UTC)