Active
Project:
Views (for Drupal 7)
Version:
7.x-3.7
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
7 Apr 2010 at 16:30 UTC
Updated:
8 Nov 2013 at 18:10 UTC
Jump to comment: Most recent
Comments
Comment #1
merlinofchaos commentedThe URL you're showing is clearly an alias. The alias is generated by pathauto. Pathauto uses a formula that is entered by the user to create the alias. The final alias exists in the database as a full path.
Views has no way of knowing the pieces pathauto used to generate that view, so you are not going to be able to use the summary view to try and mimic pathauto. This is not a bug, this is an incorrect expectation. What you're trying to do simply is not going to work.
Comment #2
mrfelton commentedok, but Views has a feature that lets you accept the term name as an argument to the view (clearly using a term ID is a better approach, and I got round this problem by adjusting the view to use the tid instead). If views will accept the term name as an argument, should it not ensure that url that is generated by the 'summary, sorted' mode is an internal link to the taxonomy page (taxonomy/term/[tid]) which will always work, rather than trying to make some kind of best guess at what that path might be. In most cases it works, especially if you the 'convert dashes to spaces' - but it doesn't work if your taxonomy term as a slash in it.
As far as I could make out, it is a combination of this (theme/theme.inc, line 239):
And this (handlers/views_handler_argument_string.ing, line137):
That is the problem... It takes the name of the term, replaces spaces for dashes, and generates a URL from that to be used in the summary link. Shouldn't it be using the tid instead, and generating a link to /taxonomy/term/[tid] which will always work?
Comment #3
merlinofchaos commentedSummaries link back to itself. You're trying to suggest it should link somewhere else entirely.
If that's what you want, you need to theme the summary and change the link.
Comment #4
mrfelton commentedWhat do you mean by they link back to themselves?
Comment #5
Letharion commentedHello!
I'm cleaning up the Views issue queue, and thus trying to close open support requests that have had no activity in the past 6 months or more. If this is still a relevant please reset the status to active, and the new bug squad will make an attempt at the problem.
Comment #6
jakew commentedI had to change a site to use tid instead of name in the url because someone started using a slash in a taxonomy term. It was really nice to have the actual name of the term reflected in the url. Is there any way to get this back without breaking it again? If not, this bug should still be open.
Comment #7
pelicani commentedwe can change the base URL of the summary link to point to the taxonomy view.
but when the term contains a term that path auto strips out, the links break.
i.e. if you have a slash in your term, path auto strips it out, but the summary keeps it in.
this approach seems logical, is there an alternative way to display a summary of taxonomy terms that link to the taxonomy page?
Comment #8
pelicani commented