Surpress page 1 request parameter
---------------------------------
Key: DISPL-560
URL: http://jira.codehaus.org/browse/DISPL-560
Project: DisplayTag
Issue Type: New Feature
Components: Paging/Sorting
Affects Versions: 1.1.1
Reporter: Jasper Rosenberg
Priority: Minor
Attachments: Pagination.txt
Viewing a displaytag table with no paging arguments and with page=1 will
generally render the same page. This is not ideal for SEO, as Google will find
both versions of the page, and have to choose one as the authoritative version.
To help with this, I propose conditionally (based on a new property),
suppressing the first page request parameter. I have attached a patch to
Pagination.java (against the 1.1.1 tag) which takes care of this, but it is not
hooked up to a configuration property.
There is one gotcha to be careful of if you enable this feature. If you were
setting the table requestURI to just an anchor tag (like "#mySection"), then
you have to make it absolute to have this work:
("/MyApp/myPage.html#mySection") Otherwise, because ?"page=1" is not being
added, the page link stays on the current page when you really want to go to
page 1.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
displaytag-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/displaytag-devel