The links are broken (Los enlaces estan rotos)

YAcostaYAcosta
edited January 2013 in Vanilla 2.0 - 2.8

Not much of this but the link does not lead me to load the page:

Giving click brings me to this:

And I think this is because it is missing:
index.php?p=/

I solved this by changing the plugin code:

echo "<a href=\"discussion/$DiscID/$DiscName\">$DiscName</a>";

this other:

echo "<a href=\"index.php?p=/discussion/$DiscID/$DiscName\">$DiscName</a>";

But I do not know much, and if that is not the best solution, in any case, I did this mofificacion plugin works properly.

thanks

Comments

  • @peregrine

    echo Anchor($DiscName,'discussion/'.$DiscID.'/'.$DiscName);

    grep is your friend.

  • thx. should work correctly with pretty urls and the politically correct "almost as pretty" urls.

    I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.

  • x00x00 MVP
    edited January 2013
    $DiscName =  Gnd_Format::Text($PopArray[$x]['Name']);
    $LinkName =  Gnd_Format::Url($DiscName);
    

    Better safe than sorry.

    grep is your friend.

  • peregrineperegrine MVP
    edited January 2013

    Better safe than sorry.

    thx x00. v 1.5 is now updated.

    I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.

  • 1.5 is perfect.

    thanks

Sign In or Register to comment.