Views is %encoding my paths having a german umlaut in it, when I use tokens eg. [path]

[path]/comment-[nid] should become vollständig#comment-137
[path]/comment-[nid] instead becomes vollst%25C3%25A4ndig#comment-137

Settings are the same as in #1405790: Rewrite/Use-absolute-path adds a slash as prefix, hence:
This is a picture of my settings.
And this is a picture of my view.

Comments

dawehner’s picture

Thanks for linking to a non-existing amazon instance :) Commented on the other issue that you want something
which even does not work. Pfad-aliase in drupal doesn't work like you think, they aren't hierachical.

If you link to pathalias/comment/123 it will not find that pathalias belongs to node/123.
If you want to link to a certain comment you have to use "comment/72#comment-72" to do it right.

As a solution for the problem this be solved by overriding the token generation of the path field handler
and escape the path right. That's a possible task.

Danic’s picture

Issue summary: View changes

Changed typo from "[path]/comment-[nid] should become vollständig" to "[path]/comment-[nid] should become vollständig#comment-137"

Danic’s picture

Dereine, excuse me. I fixed the links, they worked when I wrote them down. I also fixed a typo in the "should become" section. Please have another look.

My problem here is only that Views encodes the ä-character (which works on all my sites perfectly well) into %25C3%25A4. This is a problem I have only in this particular view using the [path]-token. The hyperlinks are working well!

Unfortunately I do not understand your solution. Do you mean this has to be done/fixed by the authors of Views?

Not regarding my problem here:
I know, Paths is not hierarchical, but I can define that nodes of a particular content type get a path as a prefix. So all nodes of content type "Mycontent" become mycontent/node1, mycontent/node2, etc. As I said, the hyperlinks are working well.

Danic’s picture

dereine, thanks for the help in #1405790: Rewrite/Use-absolute-path adds a slash as prefix. As written there, I will just leave this bug report as it is, too, because I don't know if this report still counts as a bug, or if it is intended behaviour. I let someone else decide that.

okokokok’s picture

I'm also experiencing this - see also http://www.drupalcommerce.org/discussions/556/product-image-views-link-p...

The problem is worse since the extra %25 simply doesn't even work (i.e. %25C3 doesn't work, %C3 does). Not yet sure why.

Could this be an issue that belongs to Token more than Views?

okokokok’s picture

Using node/[nid] as suggested in #1405790: Rewrite/Use-absolute-path adds a slash as prefix also fixes my weird encoding issue.

okokokok’s picture

Issue summary: View changes

Changed Picture Links

joshuasosa’s picture

I also still get this issue using [path]. It'd be great to get a solution for this. Using a node's title and letting it link to its content doesn't have this issue. My nodes use pathauto.

Helga’s picture

Issue summary: View changes

The solution is to open REWRITE RESULTS of [path] and select "Use absolute link (begins with "http://")". Then there will be no longer problems with ä-characters.