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.
I'm trying to create a menu item that links to a taxonomy result - I have tried a couple of variations. My search results are under publications/results
- publications/results/taxonomy:152
- Should work but gives
The path '/results/taxonomy:152' is either invalid or you do not have access to it.
- publications/results/taxonomy%3A152
- Is silently dropped by the menu system - I think it's some XSS check
- http://mydomain.com/publications/results/taxonomy%3A152
- Works but is not very pretty
Comments
Comment #1
kfurlotte CreditAttribution: kfurlotte commentedAny updates on this? I have the same problem and can't figure out what is the problem and how to fix it.
Comment #2
blooom CreditAttribution: blooom commentedHaving the same problem, any suggestions?
thx
Comment #3
momper CreditAttribution: momper commentedsubscribe
Comment #4
miiimoooI read somewhere about a workaround using an alias - tried but doesn't work.
I've posted a bug report/feature request in the menu issue queue because I think it's core problem. Let's see if something happens. Otherwise I don't know.. Maybe worth bugging David to change the characters used.
#568244: invalid path / no access
Comment #5
mpaler CreditAttribution: mpaler commentedsubscribing
Comment #6
milos.kroulik CreditAttribution: milos.kroulik commentedsubscribing
I consider this critical issue, since using absolute paths would complicate many things during site development.
Comment #7
osherl CreditAttribution: osherl commentedI have found a solution for this by accident. Add a space after the path and the Drupal menu system will be happy: "publications/results/taxonomy:152 " (without the quotes).
Let me know if it worked for you.
Laszlo
www.safecosmeticshop.com
Comment #8
mpaler CreditAttribution: mpaler commentedThat appears to work for me. Have only tested one facet.
Comment #9
lordkirin CreditAttribution: lordkirin commentedI think I figured it out try this. The key is two // behind your base path set in faceted search. Needs space after the 25
Example:
catalog//results/taxonomy:25
Comment #10
milos.kroulik CreditAttribution: milos.kroulik commentedSolution mentioned in #7 worked perfectly. Thanks a lot. However, the solution #9 returns me to my faceted search base path.
Comment #11
sefol CreditAttribution: sefol commentedSolution #7 also works fine for me.
But got a different problem now: If I put a link to my search result in a nested menu tree (like: products->Category1->Product1) the menu collapses as soon as I click on the result. I've been searching for days now to find a solution for this. Any ideas?
Comment #12
j0rd CreditAttribution: j0rd commentedWorks for me, but would be bad for SEO. Not an ideal solution. Should be resolved in some kind of manor.
I supposed it the %20 at the end of the link could be solved with Global Redirect module.
Edit: nevermind, I thought Global Redirect module removed trailing spaces. It does not.
--
Drupal Commerce Themes & Development
Comment #13
vin247 CreditAttribution: vin247 commentedany updates on this? I've used the solution in #7 and it works fine but would like to know if there's a more seo friendly approach
Comment #14
Nemanja CreditAttribution: Nemanja commentedMy solution is Taxonomy redirect .
I got one question for you, when you check recent log entries, do you find message "Missing argument 2 for variable_get..." after faceted_search message? Do you know what is that and how to fix it? Thanks