Exposed filters and URL alias problem with Global Redirect deslah on.
edde42 - May 9, 2009 - 04:58
| Project: | Global Redirect |
| Version: | 6.x-1.2 |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
Description
I having some problems with getting exposed filers working properly with URL alias and the path settings in views.
In views I seem to have to use the path taxonomy/term/% for my view to show up on a taxonomy term page. That page has my URL alias a s path, such as /directory/whatever. It shows the exposed filters though. But when I set a filter the URL changes to /taxonomy/term?query... and I get a 404 Page not found instead.
I have also tried to use /directory/... as path in the view, but then the it shows the taxonomy term based on the node template, that is not using my view at all.
How do I get my view to correctly use the right paths?

#1
I think you are confused. Please note that "taxonomy/term" as a path is NOT the same as "taxonomy/term/%" which has a term ID. There is no term ID in the former, and therefore you get a 404.
Views doesn't see the aliases, it only sees what the "real" URL is, so the aliases are more or less irrelevant to Views. So I don't really know what it is you're trying to accomplish at this point.
Beyond that, your post really doesn't do a good job describing what it is you're trying to do, so I can't tell you what it is you need to do.
#2
Sorry, had been working flat out for 28h when I wrote that so I suppose it got a bit confusing. Here comes my second attempt trying to describe this problem.
I am using pathauto to get nice clean URL's. For taxonomy terms it is generally rewritten like "directory/something-[catraw] or similar.
In the view I have added several exposed taxonomy filters that visitors can use to narrow down with.
When using a page with menu it works correct, the URL stays the same and so on.
But when a user clicks on a term on a node page and gets that term page it goes wrong.
In the view I had to use taxonomy/term/% for it to use the correct view for the page. The URL are rewritten to the correct URL alias. The expose filters show up correct, everything is fine to here.
Then I change one of the filters and click Apply. The page loads and the URL is /taxonomy/term?query...
Global Redirect was the Problem
Anyhow, I discovered it was the Deslash Global Redirect option that caused this and removes the "/60" in this case. It shouldn't as it is not a trailing slash. As soon as I turned that off it worked.
Personally I would prefer to get the clean URLs, but I don't really know how to sort that out.
#3