ekansa / gap2

Geographic Annotation Platform
4 stars 4 forks source link

permalinks/better urls to work better with hypothes.is (hestia semi-critical) #22

Open atomrab opened 10 years ago

atomrab commented 10 years ago

Right now internal navigation in the GapVis interface doesn't cause any change in the URL (so you jump from En to Gr in-browser). This is a problem for hypothes.is annotation, which seems to be attached to a particular URL. The annotations work fine when you first open them on an annotated page, but then they don't work when you move to the next page, switch languages, etc (unless you reload the page, at which point they work again). I guess we could work around this by just constantly reloading pages, but that's a pain. Is there an easier way?

enridaga commented 10 years ago

As far as I can see it only affects en-gr switching, all other actions do change the URL. Am I correct?

enridaga commented 10 years ago

The problem is that - as it is now - it is hard to reflect the change of the en/gr sub page in the URL. Have you tried to use the permalink (bookmark action) function to force the creation of a URL which embeds the state of the page? If this works one solution could be to force the permalink to be set on each user action.

The test to do would be: 1) Navigate to a page 2) Press the bookmark 3) Annotate with hypothes.is 4) Change app state (eg: change page) 5) Press the bookmark 6) Annotate with hypothesis ... If this works without reloading then the above solution may work too (ie automate steps 2 and 5). If not there is no known solution because Gavis is a single page application (1 URL, many pages) and it may be that hypothes.is wants the classical 1 URL=1 Page web rule to be respected.