lundi 1 juin 2015

EmberJS and URL structure issues

We are using EmberJS for some sign up forms on our website. The sign up is for different sections of our offering. We should like the form to reflect the section, in the following URL pattern:

http://ift.tt/1db2PZy  
http://ift.tt/1K5UlQy  
http://ift.tt/1db2PJj  
...

We want the signup form across these sections, around ten sections or so, to be the same Ember code but referring to ten config files.

The issue with this is that EmberJS would either require all the JS and assets to be in the root folder to achieve the architecture I describe above, or we would need multiple copies of the same Ember and assets in ten folders for each section.

Because ember wants the JS etc to be in the same location, ideally in root, I suppose the following is easy:

http://ift.tt/1K5Uofd  
http://ift.tt/1db2PJl  
http://ift.tt/1K5Uofh  
...

But this is not ideal for us given our URL pattern ambition. Both for human users and SEO purposes.

Is there something creative we can do to work around this Ember limitation? Something like URL rewriting or any other clever structuring of code. Welcome any thoughts from the gurus.

Thank you




Aucun commentaire:

Enregistrer un commentaire