Giter Club home page Giter Club logo

gwt-pushstate's People

Contributors

jbarop avatar mwuertinger avatar rdwallis avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

gwt-pushstate's Issues

Deactivation when using GWT-PhoneGap

When using phonegap you do not want to have the url rewritten. Could you insert a function

PushStateHistorian.setEnable(false);

which can be used to disable PushState in onModuleLoad(). This is needed when you use the same code for web and for mobile. Otherwise you have to write more than one of the same files.

You can use it as:

if (phoneGap.isPhoneGapDevice()) {
   PushStateHistorian.setEnable(false);
}

What do you think?

Upgrading to 2.0-SNAPSHOT

2.0-SNAPSHOT is in master and can be checked out and run.

Due to changes in GWT 2.7 it is no longer a drop in replacement and instead requires that History calls be made to Historian instead. See the readme for more details.

PushState rewrite problems

Hi,

I tested you lib and found the following. I use route place tokens of the form

public static final String user = "!/{"+UrlTokens.USER_NAME+"}";

I have a test user called www. My GWT module name is mobile and the GWT base path is

/gwt/mobile/

I set the following in my entry point class's onModuleLoad() function

PushStateHistorian.setRelativePath("/gwt/"+GWT.getModuleName());

When i open the index page of my app with:

http://test.no-ip.biz:8080/test

it is transformed to

http://test.no-ip.biz:8080/test/#

The /# should not be in the url. Since I am in a HTML5 PushState supported browser.

When I go to the user page of my test user www I enter

http://test.no-ip.biz:8080/test/www

This url is transformed into

http://test.no-ip.biz:8080/test/www#!/www

I had the same problem when I enhanced the push-state code. I think that you do not parse the path correctly. Also, I was wondering why #!/www is part of the url when I am in a push state supported browser?

404 Issue with gwtp1.5 and gwt-pushstate 2.0.0

Hi,

First of all thank you for this project ! This solution match perfectly with Google's Recommandations for crawler.
I wanted to try it with the gwtp's sample project for a POC, but i have some trouble : After form submission, URL become http://127.0.0.1:8888/response;textToServer=azee , but i have a 404 when i try to load it in a new tab.

Step to reproduce :

I didin't put relative path because url is on root : http://127.0.0.1:8888/Gwtpsamplespring.html

Am i doing something wrong , or is there a compatibility problem with gwtp1.5 ?

Thank you !

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.