WordPress.org

Make WordPress Core

Opened 16 years ago

Closed 16 years ago

Last modified 22 months ago

#1684 closed defect (bug) (invalid)

No trailing slash for WordPress/Blog Address (URI)

Reported by: carnaticwm Owned by:
Milestone: Priority: normal
Severity: normal Version: 1.6
Component: General Keywords: bg|2nd-opinion
Focuses: Cc:

Description

Greetings,

I have setup WordPress at http://sub.domain.org/blog/

But at http://sub.domain.org/blog/ the Weblog title is linked to http://sub.domain.org/blog - without trailing slash

In the "General Options"... Am not able to change http://sub.domain.org/blog to http://sub.domain.org/blog/

Consider adding the trailing slash to the link

Right now, at TextDrive, am having a problem because

http://sub.domain.org/blog redirects to http://domain.org/blog/

Even though I am asking TD to look into it, the trailing slash in the link would be better !


Or is there a reason for no trailing slash ?

Cheers, Kishore.

Change History (6)

#1 @davidhouse
16 years ago

The offending code is in get_alloptions:

if ('siteurl' == $option->option_name) $option->option_value = preg_replace('|/+$|', '', $option->option_value);
if ('home' == $option->option_name) $option->option_value = preg_replace('|/+$|', '', $option->option_value);

Why is this code necessary?

#2 @davidhouse
16 years ago

  • Keywords bg|2nd-opinion added

#3 @carnaticwm
16 years ago

Thanks Davidhouse...

The same issue is occuring in the feed as well

for http://sub.domain.org/blog/feed/ - the link also has no trailing slash !

It contains ...<link>http://sub.domain.org/blog</link>...

#4 @shorty114
16 years ago

The trailing slash is taken out because WP does $blog_uri.'/wp-whatever.php', so it adds the trailing slash.

It works fine on my subdomain (I'm on ASO), so maybe TD should look into it.

#5 @shorty114
16 years ago

  • Resolution set to invalid
  • Status changed from new to closed

This ticket was mentioned in Slack in #core-editor by welcher. View the logs.


22 months ago

Note: See TracTickets for help on using tickets.