2

I have a url that looks like

mysite.com/transactions/view/123456

which works fine.

however my client now wishes to have a hashbang in the url

mysite.com/transactions/view/#123456

Now the obvious issue here is that browsers treat the hashbang as an anchor directive.

Is there anyway to in code igniter allow the hashbang and have #123456 (or even just 123456) passed to the view function?

Anindya Dhruba
  • 500
  • 7
  • 21
Hailwood
  • 89,623
  • 107
  • 270
  • 423

1 Answers1

8

Is there anyway to in code igniter allow the hashbang and have #123456 (or even just 123456) passed to the view function?

Short of javascript, no. The browser simply doesn't send the 'fragment' portion of the URL to the server. PHP can only read it if javascript running after the page has rendered sends it in a second request.

Frank Farmer
  • 38,246
  • 12
  • 71
  • 89