Why does Safari link to 'undefined'?

Hey guys, hope you can help!


So when I'm browsing with Safari for Mac (Version 7.0.6 (9537.78.2)), if I click a link, it will occasionally replace the last section of the URL with the word 'undefined' wreaking havoc. For example, I just clicked the 'main page' link on Wikipedia, the URL at the top changed to


http://en.wikipedia.org/wiki/main_page


Then, before the page loads, it changes to:


http://en.wikipedia.org/wiki/Undefined]


It happens with all sorts of sites (Apple's included). And I'm sick of seeing 404 pages!


Any help would be greatly appreciated!


Many thanks!

Posted on Sep 19, 2014 7:47 AM

Reply
7 replies

Sep 20, 2014 6:28 AM in response to PaceyJ

Please read this whole message before doing anything.

This procedure is a test, not a solution. Don’t be disappointed when you find that nothing has changed after you complete it.

Step 1

The purpose of this step is to determine whether the problem is localized to your user account.

Enable guest logins* and log in as Guest. Don't use the Safari-only “Guest User” login created by “Find My Mac.”

While logged in as Guest, you won’t have access to any of your documents or settings. Applications will behave as if you were running them for the first time. Don’t be alarmed by this behavior; it’s normal. If you need any passwords or other personal data in order to complete the test, memorize, print, or write them down before you begin.

Test while logged in as Guest. Same problem?

After testing, log out of the guest account and, in your own account, disable it if you wish. Any files you created in the guest account will be deleted automatically when you log out of it.

*Note: If you’ve activated “Find My Mac” or FileVault, then you can’t enable the Guest account. The “Guest User” login created by “Find My Mac” is not the same. Create a new account in which to test, and delete it, including its home folder, after testing.

Step 2

The purpose of this step is to determine whether the problem is caused by third-party system modifications that load automatically at startup or login, by a peripheral device, by a font conflict, or by corruption of the file system or of certain system caches.

Please take this step regardless of the results of Step 1.

Disconnect all wired peripherals except those needed for the test, and remove all aftermarket expansion cards, if applicable. Start up in safe mode and log in to the account with the problem. You must hold down the shift key twice: once when you turn on the computer, and again when you log in.

Note: If FileVault is enabled, or if a firmware password is set, or if the startup volume is a software RAID, you can’t do this. Ask for further instructions.

Safe mode is much slower to start up and run than normal, with limited graphics performance, and some things won’t work at all, including sound output and Wi-Fi on certain models. The next normal startup may also be somewhat slow.

The login screen appears even if you usually log in automatically. You must know your login password in order to log in. If you’ve forgotten the password, you will need to reset it before you begin.

Test while in safe mode. Same problem?

After testing, restart as usual (not in safe mode) and verify that you still have the problem. Post the results of Steps 1 and 2.

Sep 19, 2014 5:28 PM in response to PaceyJ

Back up all data.

From the menu bar, select

System Preferences... Network

If the preference pane is locked, click the lock icon in the lower left corner and enter your password to unlock it. Then click the Advanced button and select the Proxies tab. If any proxy options are selected, make a note of them and then deselect them. You don’t need to change the bypass or FTP settings. Click OK and then Apply. Test. The result may be that you can't connect to any web server. Restore the previous settings if that happens.

Sep 22, 2014 6:03 AM in response to Linc Davis

Ok, so I tried both of those tests, and in both of them, I had the same result, problem persists. So I went off and did a little investigating, and my roommate (who has an older model of the same machine as me, in fact, she has my previous computer) has been having the same issue. So, on a wild hunch, I went and swapped out our network router with a new one, and lo and behold, the problem is gone.


I want to thank you, Linc Davis, for your exceptional help, and say to anyone having the same issue, give your router a look. I don't know what the issue was, but now that it is rectified, I'm just happy to browse uninterrupted!

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Why does Safari link to 'undefined'?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.