vaadin / framework

Vaadin 6, 7, 8 is a Java framework for modern Java web applications.
http://vaadin.com/
Other
1.79k stars 729 forks source link

Decide on default URI format for navigation #2638

Closed vaadin-bot closed 12 years ago

vaadin-bot commented 12 years ago

Originally by @hesara


When pushState is supported for URLs of the form mysite.com/tori/category/123 without page reloads, there are several possible URL format strategies. To avoid changing the default URL format in a minor version, the default strategy should be decided on before Vaadin 7.

Note that this does not only apply to Navigator but also other mechanisms using the lower level fragment APIs directly.

The possible strategies are

Multiple strategies may be supported, but the default should be decided on.


Imported from https://dev.vaadin.com/ issue #9268

vaadin-bot commented 12 years ago

Originally by @jojule


It also should be noted that when people navigate to a system initially, they do not write /# or /#! in the end of the URL. This would lead to one extra redirect if "#! on all browsers strategy".

The con for the strategy number 1 could probably be resolved like this: https://gist.github.com/1142129

Default is important and promoting modern, simple and fast web experience would be very desirable. It is also really important to get this right with 7.0, because we do not want to change the default in 7.1.

Thus +1 for:

vaadin-bot commented 12 years ago

Originally by @Artur-


Should preferrably be decided before beta1.

vaadin-bot commented 12 years ago

Originally by @Artur-


Vaadin 7.0.0.beta1 will only support fragments in all browsers, i.e. #! will always be used. The redirect from "http://myapp.com" to "http://myapp.com/#!" happens when a Navigator is taken into use (#9365).

The push state implementation will use #! only for IE8/IE9 (redirect using replaceState if #! is used in other browsers). See #9364 for more details.