With Views I created several pages and defined their paths like:
section1/agenda
section1/users
This works well, but when I enable Subpath Alias, I can't access these views anymore. Instead they direct me to section1
Disabling Subpath Alias makes it work again.
| Comment | File | Size | Author |
|---|---|---|---|
| #32 | view-subpath_alias_fail.txt | 5.38 KB | tommyk |
| #27 | subpath_alias-views_page_failure_fix-570670-26.patch | 947 bytes | ajdonnison |
Comments
Comment #1
RobNL commentedI experience the same problem as oBirdman describes. Disabling Subpath makes it work again, but I found an other solution.
I renamed the views in:
section1-agenda
section2-agenda
and then I added the URL aliases:
section1-agenda --> section1/agenda
section1-users --> section1/users
Then the views work with the Subpath Alias enabled. It is a bit curious, but for some dynamic theming reasons I need the 'section1/' in my URL's.
Comment #2
tim.plunkettAlso breaks Devel's dev load and dev render tabs.
The error given is "too many redirects".
Comment #3
akhodakovskiy commentedAjaxed pager in Views doesn't work as well.
I think module should make Views hook it's method to obtain proper system path.
Comment #4
nagiek commentedsubscribe
Comment #5
ManyNancy commentedI also had a problem with ajax pager. I didn't realize it was this module.
Also the same problem as topic starter.
Please fix! This is a great module. Thanks!
Comment #6
ManyNancy commentedComment #7
ManyNancy commentedComment #8
kaianine commentedi have this problem as well, with the subpath.
in my instance, using subpath w/ ubercart products, the edit link for the product also does not work, returning a browser-based looping redirect error. (as mentioned by another user above, my node's Devel links are also broken when subpath is enabled)
disabling subpath returns the link to it's original path (node/##/edit) allowing the edit link to function as intended.
Comment #9
smk-ka commented@kaianine: do you have the Global Redirect module installed? If so you'll find the solution here: #346911: Redirect Loop and custom_url_rewrite ignored.
Comment #10
iva2k commentedsubscribe
Comment #11
iole commentedSame issue here. I would love to use this module, but it stops the Calendar module's calendar view from displaying anything but the default view, as it seems to stop the view from seeing any arguments.
Comment #12
thijslemmens commentedsubscribe
Comment #13
flips commentedSame issue here.
Comment #14
Jerome F commentedSubscribing
If this module breaks views and panels arguments I can't use it.
Comment #15
blueblade commentedsubscribe
Comment #16
Mars2012 commentedAnyone has a solution for this?
I have see drupal webpages which work just fine with the subdomain.
Comment #17
Mars2012 commentedSOLVED!
Unistall the module Sub-path URL Aliases and maybe you don't need the URL alter either.
Install the module Extended path aliases.
Follow the Readme.txt to install this module.
It's very easy to configure.
Configuration = NONE ;-)
Enjoy
Comment #18
blueblade commentedHi, you mean version 6.x-1.1?
Comment #19
Mars2012 commentedHi again,
Version 6.x-1.1 and 6.x-1.0. These module have bugs.
The two modules Sub-path URL Aliases and URL alter (needed by Sub-path URL Aliases) don't work together.
The module Extended path aliases work 100%.
Regards
Comment #20
crea commentedSubscribing
Comment #21
YK85 commentedsubscribing
Comment #22
cyberwolf commentedSubscribing.
Comment #23
jleinenbach commented#346911: Redirect Loop and custom_url_rewrite ignored fixed my problem, too.
Comment #24
dave reidSounds like this has been confirmed multiple times that the problem lies in Global redirect.
Comment #25
Stilgar commentedI confirm Views' page malfunction without Global redirect installed. Do you need reproduction on vanilla Drupal?
Comment #26
ajdonnison commentedI can confirm the problem exists, and is related to the custom url rewrite functions. If you install the facebook integration module it installs its own custom url rewrite functions, so url_alter cannot implement its own, and the problem goes away. Investigating further.
*update* - definitely a problem in subpath_alias_url_inbound_alter function. Looks like it doesn't know that the path already is in use by a view.
*further update* - The problem is that the view will register the path with the menu router, however the path aliasing occurs before the menu system starts up, and modifies the path that is looked for. Ideally the subpath_alter_url_inbound_alter function should check if the module views exists and if the path is already in the menu router. Unfortunately the alter function runs before full initialisation, so we can't query if views exists nor can we check the menu system, as it isn't loaded.
Comment #27
ajdonnison commentedThe following patch addresses the issue, although I'm not happy that we have to do a database lookup to get this.
Comment #28
jasom commented#27 not working for me, because if was causing by broken quicktabs js. So this comment is irrelevant.
Comment #29
DanielWashbrook commentedThanks ajdonnison! #27 worked for me for views that had 'sub-directory' structures in their paths.
Comment #30
tommyk commentedThe patch in #27 works for me as well. Views paths are now working.
Hopefully this patch can be reviewed further by those more familiar with the code in this module.
Comment #31
wizonesolutionsOh, snap! #27 worked for me too! Can't believe it!
I am going to be bold and RTBC this. DB lookup may suck, but the issue sucks more.
Comment #32
tommyk commentedSomething about this patch stopped working for me. I cannot figure out what it is.
In trying to figure it out, I set up a barebones D6 install with just CCK, Date, Views 3, Sub-path URL Aliases (with patch in #27), and URL alter, (and Devel generate).
I do not know why I reported the patch worked back in March. It must have seemed that way for some reason. It doesn't work for me any more and I'm quite sure I'm using the exact same versions of all the modules involved as I was back then. I attached the View if anyone cares to try to reproduce what I'm trying.