WordPress.org

Make WordPress Core

Opened 3 years ago

Closed 3 years ago

Last modified 3 years ago

#17953 closed defect (bug) (invalid)

Trimmed URLs flagged as invalid URLs

Reported by: The_Magistrate Owned by:
Milestone: Priority: normal
Severity: normal Version: 3.2
Component: Administration Keywords:
Focuses: Cc:

Description

I have mod_pagespeed installed as an apache mod. When using the trim_urls filter, a url to an external site -- e.g. http://wordpress.org -- gets rewritten to //wordpress.org automatically.

When a user clicks on the link, an email gets sent to the Wordpress Admin stating:

A user tried to go to http://alexcline.net/wordpress.org/ and received a 404 (page not found) error. It wasn't their fault, so try fixing it.
They came from http://alexcline.net/index.php

Technically, //wordpress.org is a valid external URL and works correctly in a user's browser. It would be nice if I didn't have to get notifications about these URLs.

rel: http://groups.google.com/group/mod-pagespeed-discuss/browse_thread/thread/86a0adf7d46aa9eb

Change History (2)

comment:1 nacin3 years ago

  • Milestone Awaiting Review deleted
  • Resolution set to invalid
  • Status changed from new to closed

Core doesn't send emails about 404s. Sounds like you have a plugin doing this.

comment:2 dd323 years ago

I have mod_pagespeed installed as an apache mod. When using the trim_urls filter, a url to an external site -- e.g. http://wordpress.org -- gets rewritten to wordpress.org automatically.

WordPress doesn't modify the links, If you're using mod_pagespeed, the trimming will occur after it's out of WordPres's hands.

If a user is clicking the link and it's directing the user to http://alexcline.net/wordpress.org/ then either their browser doesn't support the trimmed URL support, some Javascript is messing with the trimmed url's, or there's a bug in the url trimmer.

Note: See TracTickets for help on using tickets.