Incorrect URL when removing a tag

Plugin SupportForumsDelicious XML Importer and Twenty Links themeIncorrect URL when removing a tag

Tagged: ,

This topic has 2 voices, contains 5 replies, and was last updated by  aldolat 90 days ago.

Viewing 6 posts - 1 through 6 (of 6 total)
Author Posts
Author Posts
October 8, 2011 at 2:53 am #517

aldolat

Hi,
I would report a bug for those who have a site using this theme and running in a subfolder.

Situation
When viewing a tag page (like `tag/framework+css`), I found that when I click on the X to remove a tag, the returned URL is `/tag/framework+css` that redirect me to the root of the site.

Solution
Open tag.php (theme version 0.6.1) and change the lines 34 and 35 into this:
`
if (empty($minusthistag)) $taglink = site_url() . ‘/’;
else $taglink = site_url() . ‘/tag/’.implode(‘+’, $minusthistag);
`

Adding this to the theme would be appreciated. :)

October 8, 2011 at 3:32 am #519

aldolat

Also I found a similar incorrect behaviour in the tag search form: after inserting a tag and pressing Enter, I am redirected to the root.

The line to change is nr. 42 in the file `loop.php`. The “action” should be:

`action=”<?php echo site_url(); ?>/”`

October 8, 2011 at 12:39 pm #520

Stephanie

Thanks much. I’ll put these fixes into the next update.

October 8, 2011 at 1:31 pm #521

Stephanie

… which is here: 0.6.2.

October 8, 2011 at 2:33 pm #522

aldolat

Thanks for the update! :)

Another similar bug is located in functions.php. The widget redirects to the root. You can change the line 37 into this one:

echo 'slug.'">'.$tag->name.''.$tag->count.'';

October 8, 2011 at 2:36 pm #523

aldolat

WordPress! grrr

The line 37 is:
echo ‘<li><a href=”‘ . site_url() . ‘/’.$tagbase.’/’.$tag->slug.’”>’.$tag->name.’<span class=”count”>’.$tag->count.’</span></a></li>’;

Viewing 6 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.