Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Options

How to change Target url structure?

janmarsijanmarsi New
edited September 2015 in Vanilla 2.0 - 2.8

Hi, I've successfully changed in my forum default discussion and category links structure with SEOLinks (HTML Links) Plugin.
Now instead of http://myforumname.com/discussion/10/Discussion-Name/p2 I have http://myforumname.com/category-name/d10-Discussion-Name/p2, please don't ask why I need it, but It's really important for me to get real links in this way.
The problem is with with $Target links, this plugin doesn't change them, and I don't know how to change them in other way.
In example, in views/modules/guest.php is something like:
echo Anchor(T('Sign In'), SignInUrl($this->_Sender->SelfUrl), 'Button Primary'.(SignInPopup() ? ' SignInPopup' : ''), array('rel' => 'nofollow'));
SelfUrl is in library/core/class.dispatcher.php on line 268:
$Controller->SelfUrl = $this->Request;
But what next? Which function is responsible for the output of this default url? Or maybe I'm trying to do this in wrong way...

Comments

  • Options
    LincLinc Detroit Admin
    edited September 2015

    I'm not sure whether the plugin could be improved to account for this case or not. For SEO purposes, that Target issue isn't going to matter. The plugin sets the SEOLinks version of the URL as the canonical URL via a meta tag, so you won't get duplicate content warnings or anything like that.

  • Options
    vrijvlindervrijvlinder Papillon-Sauvage MVP

    The target in this case is the Discussion. That means that after the sign in they are redirected to the Discussion.

    You have made the categories page the home page?

Sign In or Register to comment.