0

I am looking to update part of my website to have more friendly URLs.

Currently I am using #tags at the end of the URL which means the page doesn't refresh when say I go from example.com/trucks to example.com/trucks#1234_235_23

But I want to transfer that to be

example.com/tracks/large/standard/VXR-Maloo

But this needs to work in IE7 and 8 and also needs to not refresh the page after I go to example.com/trucks.

I was thinking of a history API but this will not work for IE7/8 so does anyone have any suggestions?

The back end is on a java platform.

Donald Duck
  • 8,409
  • 22
  • 75
  • 99
Dan
  • 1,295
  • 2
  • 22
  • 46

1 Answers1

0

There is not a method to do this that will work across all browsers.

Consider falling back to a hash-based implementation only on old browsers that don't support History APIs. You can do this with a module such as History.js.

Interrobang
  • 16,984
  • 3
  • 55
  • 63