Make WordPress Core

Opened 19 years ago

Closed 19 years ago

Last modified 5 years ago

#1684 closed defect (bug) (invalid)

No trailing slash for WordPress/Blog Address (URI)

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



I have setup WordPress at

But at the Weblog title is linked to - without trailing slash

In the "General Options"... Am not able to change to

Consider adding the trailing slash to the link

Right now, at TextDrive, am having a problem because redirects to

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
19 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
19 years ago

  • Keywords bg|2nd-opinion added

#3 @carnaticwm
19 years ago

Thanks Davidhouse...

The same issue is occuring in the feed as well

for - the link also has no trailing slash !

It contains ...<link></link>...

#4 @shorty114
19 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
19 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.

5 years ago

Note: See TracTickets for help on using tickets.