[Catalyst] Re: possible to get uri fragment?

Mark A. Stratman stratman at gmail.com
Tue Jun 15 13:58:07 GMT 2010


On Jun 15, 2010, at 4:07 AM, Fayland Lam wrote:

> hmm, it seems server can't get #fragment because the browser doesn't send it to server?
> so leave it. Thanks

If the links are being visited from other pages, what you can do is just add an http param to all named links. e.g. http://localhost/?anchor=test#test

Or: http://localhost/test1#test1
http://localhost/test2#test2
etc

Where all those are handled by your index and rendering the same template, and test1, test2 are just arguments.

If the links are being clicked locally on the page with the anchors, then you'll need to set up some javascript 'click' handlers on the links.

- mark


More information about the Catalyst mailing list