Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment #1
dawehnerThanks 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.
Comment #1.0
Danic CreditAttribution: Danic commentedChanged typo from "[path]/comment-[nid] should become vollständig" to "[path]/comment-[nid] should become vollständig#comment-137"
Comment #2
Danic CreditAttribution: Danic commentedDereine, 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.
Comment #3
Danic CreditAttribution: Danic commenteddereine, 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.
Comment #4
okokokok CreditAttribution: okokokok commentedI'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?
Comment #5
okokokok CreditAttribution: okokokok commentedUsing node/[nid] as suggested in #1405790: Rewrite/Use-absolute-path adds a slash as prefix also fixes my weird encoding issue.
Comment #5.0
okokokok CreditAttribution: okokokok commentedChanged Picture Links
Comment #6
joshuasosa CreditAttribution: joshuasosa commentedI 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.
Comment #7
Helga CreditAttribution: Helga commentedThe 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.