denethon
denethon

Reputation: 93

Apache Wicket: Remove or alter presentation of pageId from statefull pages

Is it possible to remove the pageId from the URL of a statefull wicket page? It's ok if it's not versioned in the page store because of this.

I've tried overriding the isVersioned()-method to returning false, but I still get the pageId in the URL:

http://localhost:8080/appname/s/frontpage/?11

Or - even better - is it possible to alter the presentation by assigning the pageId to a parameter like this:

http://localhost:8080/appname/s/frontpage/?pageId=11

and thus keep the page statefull?

The reason I would want to do this is because the pageId creates lots of different URLs in my google analytics dashboard which in reality is the same URL:

http://localhost:8080/appname/s/frontpage/?0 http://localhost:8080/appname/s/frontpage/?1 http://localhost:8080/appname/s/frontpage/?2 http://localhost:8080/appname/s/frontpage/?3

etc...

Thank you.

Upvotes: 1

Views: 270

Answers (1)

Related Questions