Make WordPress Core

Opened 8 years ago

Closed 8 years ago

Last modified 8 years ago

#42844 closed defect (bug) (wontfix)

issuing 301 redirects for any url that has () at the end

Reported by: scottjbeck's profile scottjbeck Owned by:
Milestone: Priority: normal
Severity: normal Version: 4.9.1
Component: General Keywords: SEO
Focuses: Cc:

Description

If I have a URL like:

/any-dam-url()

it returns 301 redirect to

/any-dam-url

this seems to have started with wordpress 4.9, as this behavior is not seen in 4.7.8 and 4.8.4 (as tested)

If this is intentional new behavior, how do we work around this change?

Live example:
https://greensock.com/docs/TweenMax/delay()

Change History (5)

#1 follow-up: @joostdevalk
8 years ago

  • Keywords SEO added
  • Milestone Awaiting Review deleted
  • Resolution set to wontfix
  • Status changed from new to closed

This was an intended change, which went in here:

https://core.trac.wordpress.org/changeset/41991

You could theoretically prevent that redirect from happening but I'd suggest not doing that. The () at the end of the URL is not very user friendly.

Last edited 8 years ago by joostdevalk (previous) (diff)

#2 in reply to: ↑ 1 @scottjbeck
8 years ago

Thank you for the quick response.

I'm surprised to learn that being "user friendly" trumps being a legal valid url and was a change in going from 4.8 to 4.9, thus breaking existing url's within the existing code base we have.

Now, off to figure out how to "break" the wordpress dictated user friendliness so we can retain our existing deep links throughout our site.

Replying to joostdevalk:

This was an intended change, which went in here:

https://core.trac.wordpress.org/changeset/41991

You could theoretically prevent that redirect from happening but I'd suggest not doing that. The () at the end of the URL is not very user friendly.

#3 @munyagu
8 years ago

  • Keywords SEO removed

I think WordPress should not automatically remove characters allowed by RFC 3986 like ().

#4 @joostdevalk
8 years ago

  • Keywords SEO added

@munyagu why did you remove my custom keywords? You're entitled to your opinion of course, I don't appreciate you breaking my workflow though :-)

#5 @munyagu
8 years ago

@joostdevalk Sorry for my miss touch.
I had no idea to remove it.

Note: See TracTickets for help on using tickets.