Posted by almamun on January 2, 2013 at 6:10pm
1 follower
Jump to:
| Project: | Trailing Slash |
| Version: | 7.x-1.0 |
| Component: | Miscellaneous |
| Category: | bug report |
| Priority: | major |
| Assigned: | Unassigned |
| Status: | postponed (maintainer needs more info) |
Issue Summary
Hello,
Here is a peculiar issue when I hit the urls without trailing slash, I'm redirected to the urls like this
domain/home/user-name/public_html/the-node-url/Also, I'm getting hundreds of error messages like thisNotice: Use of undefined constant DEBUG_BACKTRACE_IGNORE_ARGS - assumed 'DEBUG_BACKTRACE_IGNORE_ARGS' in trailing_slash_url_outbound_alter() (line 41 of /home/user-name/public_html/sites/all/modules/trailing_slash/trailing_slash.module).
Hope somebody helps me.
Regards
Comments
#1
There are two issues here:
1. The DEBUG_BACKTRACE_IGNORE_ARGS error has already been noted and will be fixed soon. See:
http://drupal.org/node/1858820#comment-6815560
2. The second issue is a problem with how Trailing Slashes are enforced.
Am I right in assuming that you are using Trailing Slash in conjunction with Global Redirect?
If so, are you using Global Redirect to enforce the trailing slashes (eg. Enforce trailing slash Global Redirect setting is checked)?
#2
Hello Akaoni,
Thanks for responding.
This is what I did
1. I installed both Global Redirect and Training Slash modules.
2. Placed these 2 lines of htaccess code right next to # RewriteBase /
RewriteCond %{REQUEST_METHOD} !=post [NC]RewriteRule ^(.*(?:^|/)[^/\.]+)$ $1/ [L,R=301]
3. Enabled both options in Training Slash module.
4. Enabled Enforce trailing slash in Global Redirect module