You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@forrest.apache.org by "helena (JIRA)" <ji...@apache.org> on 2005/12/13 06:25:46 UTC
[jira] Updated: (FOR-762) Breadcrumbs
[ http://issues.apache.org/jira/browse/FOR-762?page=all ]
helena updated FOR-762:
-----------------------
Description:
When employing breadcrumbs,
example generated links: home > dir > subdir
if the user is in node subdir, then clicks dir,
cocoon returns "The requested resource "/dir /" could not be found.
The link's absolute path during testing is http://localhost:8888/dir/
Case 1. If you place an index.html file under http://localhost:8888/dir/ for a redirect or viewable content,
clicking on breadcrumbs' dir link throws the error.
Case 2. If you manually enter the index.html in the browser path after http://localhost:8888/dir/, the request is handled.
Case 3. If sitemap has match="dir/index.html", cocoon still isn't happy with request dir/
Cocoon does not appear to assume the end node directory is index.* and thus appends no file automatically as tomcat or the http server does so it must be manually done.
was:
When employing breadcrumbs,
example generated links: home > dir > subdir
if the user is in node subdir, then clicks dir to go up one level,
cocoon returns "The requested resource "/dir /" could not be found.
The link's absolute path during testing is http://localhost:8888/dir/
Case 1. If you place an index.html file under http://localhost:8888/dir/ for a redirect or viewable content,
clicking on that breadcrumbs' dir link throws the error.
Case 2. If you manually enter the index.html in the browser path after http://localhost:8888/dir/
the request is handled.
Case 3.
even if sitemap has match="articles/index.html" cocoon still isn't happy with request articles/
comment from users mail list:
a solution is to either add "index.html" to every breadcrumb link in the code that generates the breadcrumb trail (in something like breadcrumbs.js in the common skin), or to add a redirect to the sitemap.xmap that will always redirect an URL ending in a '/' to the same url with "index.html" appended. See the core sitemap.xmap for an example of how to do this ('/' is redirectoed to '/index.html')
If you solve the problem please attach a patch to the issue you create.
> Breadcrumbs
> -----------
>
> Key: FOR-762
> URL: http://issues.apache.org/jira/browse/FOR-762
> Project: Forrest
> Type: Bug
> Components: Skins (general issues)
> Versions: 0.7, 0.8-dev
> Reporter: helena
> Priority: Minor
>
> When employing breadcrumbs,
> example generated links: home > dir > subdir
> if the user is in node subdir, then clicks dir,
> cocoon returns "The requested resource "/dir /" could not be found.
> The link's absolute path during testing is http://localhost:8888/dir/
> Case 1. If you place an index.html file under http://localhost:8888/dir/ for a redirect or viewable content,
> clicking on breadcrumbs' dir link throws the error.
> Case 2. If you manually enter the index.html in the browser path after http://localhost:8888/dir/, the request is handled.
> Case 3. If sitemap has match="dir/index.html", cocoon still isn't happy with request dir/
> Cocoon does not appear to assume the end node directory is index.* and thus appends no file automatically as tomcat or the http server does so it must be manually done.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira