Bugs item #1219477, was opened at 2005-06-13 05:12
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=684975&aid=1219477&group_id=119783
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: core
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Gili Tzabari (cowwoc)
Assigned to: Nobody/Anonymous (nobody)
Summary: Consistent homepage URL
Initial Comment:
The homepage URL needs to be consistent. Right now a
user can hit the homepage without any query arguments
and this produces a different URL than if another page
contains a BookmarkablePagelink to the homepage.
Consider the following use-case:
1) User hits homepage directly (no query args)
2) Hits hits page B
3) Page B contains a BookmarkablePagelink to the
homepage, but this shows up as "never visited before"
because the resulting URL differs from the original
visited URL.
I fixed this by adding this to my homepage Java code:
String path = getRequest().getURL().trim();
if
(getRequest().getParameter("bookmarkablePage")==null)
{
// Ensure URL always contains bookmarkablePage so
BookmarkableLinks to
// this page will show up as visited
path += "?bookmarkablePage=" + getClass().getName();
getResponse().redirect(path);
}
Wicket should do this out-of-the-box.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=684975&aid=1219477&group_id=119783
-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games. How far can you shotput
a projector? How fast can you ride your desk chair down the office luge track?
If you want to score the big prize, get to know the little guy.
Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20
_______________________________________________
Wicket-develop mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-develop