1. Change this line to just read `page()`
https://github.com/PolymerElements/polymer-starter-kit/blob/master/app/elements/routing.html#L68-L71

2. Follow this guide on serving from a subdirectory
https://github.com/PolymerElements/polymer-starter-kit/blob/master/docs/deploy-to-github-pages.md

3. I believe the router should do this for you once you have subdirectory
serving setup
https://github.com/PolymerElements/polymer-starter-kit/blob/master/app/elements/routing.html#L65

On Thu, Dec 31, 2015 at 11:36 AM, Carl Whalley <[email protected]>
wrote:

> Hi - I'm struggling with this, mainly because I want to combine Polymers
> local offline routing with the online session management Resin provides.
> I'm sure there are only
> 3 changes I need to make to the Starter Kit to do this, and one of them is
> easy ;-) To clarify - a web-app is named, here it's "example.com" - and
> all
> routes refer to this in the URL. In production it's virtually the default,
> but the setup I'm aiming for here would be great for dev.
>
> The changes I need:
>
> 1. Stop using !# in URLs
>
> 2. With a web-app called "example.com", ensure all references use
> localhost:8080/example.com/* So for example, the Starter Kit home is now
> localhost:8080/example.com and users becomes localhost:8080/
> example.com/users etc. NB - this change has nothing to do with Resin or
> Web-apps at this stage, it's just a funky Polymer config. I think this
> needs a baseUrl setting somewhere.
>
> 3. If an example.com/* url isn't matched in the local route list, don't
> give up and go to the home page but hit it anyway. For example,
> localhost:8080/example.com/login.jsp
>
> Thanks
>
> Follow Polymer on Google+: plus.google.com/107187849809354688692
> ---
> You received this message because you are subscribed to the Google Groups
> "Polymer" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/polymer-dev/f038477c-6a71-4da0-a357-5b563bc75131%40googlegroups.com
> <https://groups.google.com/d/msgid/polymer-dev/f038477c-6a71-4da0-a357-5b563bc75131%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

Follow Polymer on Google+: plus.google.com/107187849809354688692
--- 
You received this message because you are subscribed to the Google Groups 
"Polymer" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/polymer-dev/CAJj5OwBWE8gWMW0CMAQTYPwmP_t9ciaGmdYyiWTNaeF6_6vxXA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to