Not sure if I'm doing something wrong.. but it says I can use tokens in the path. I use any of the selected tokens in the link settings and I keep getting "The title path appears to contain an invalid URL."

Comments

technikh’s picture

Status: Needs review » Active

same bug here
"The title path appears to contain an invalid URL." for [current-page:url:path]

technikh’s picture

Version: 7.x-1.x-dev » 7.x-1.2

bug in 7.x-1.2 version

Katrina B’s picture

I'm experiencing the same problem.

iadefy’s picture

Having the same problem, in 7.x-1.3 and 7.x-dev

SebCorbin’s picture

Managed to get past this by adding this at the beginning of _block_titlelink_validate_url() in block_titlelink.module

  if(module_exists('token')) {
    $url = token_replace($url);
  }
adammalone’s picture

Status: Active » Fixed

Seems to work on my site with the latest module code.

I've added in and committed token support for the link title as well in the latest dev.

cedewey’s picture

Is there any chance of that being backported to the D6 version? That would be great if it was. :D

adammalone’s picture

Once I'm happy enough with 7.x-1.x-dev to make it 7.x-1.4 I'll work on another branch for D6 that should incorporate all the shiny D7 features like this one.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

paddypatpat’s picture

Could a link to this discussion be added to the module's page on d.o., while the fix is still in dev? It would have saved me some time.

I spoke too soon. The latest dev doesn't fix this issue for me. Using something like "[current-page:url:path]/peers" in the Title Path field gives me:

"The title path appears to contain an invalid URL."

So far it seems all of the tokens work in the Block Title but never in the Title Path.

I'm trying to change the title of my block (Created from a view. Perhaps this is my problem?) so that it links to the page version of that view. Organic Groups 7.x.2.x is also involved.

ericras’s picture

Issue summary: View changes

I ran into this issue using this module with Menu Block. Suggestion in #5 worked to solve it.