orionjs / orioncms

[Old] Orion is an open source framework built on Meteor that makes complex as well as simple apps possible with minimal effort.
http://orionjs.org
MIT License
715 stars 129 forks source link

url flickering on staging (soon to be production) server #399

Closed Ajaxsoap closed 8 years ago

Ajaxsoap commented 8 years ago

Hi @nicolaslopezj ,

I have this url flickering issue on my staging server deployed on DO droplet for quite a while now, i just parked it to focus on primary features of my app but now is the time to address it, as it's nearing to completion.

Here are my code set up:

Route lib/router.js

Router.configure( {
  templateNameConverter: "upperCamelCase",
  routeControllerNameConverter: "upperCamelCase",
  layoutTemplate: 'mainLayout',
  notFoundTemplate: 'notFound'

} );

Router.route( "/admin/dashboard", {
  name: "Dashboard",
  template: "Dashboard",
  reactiveTemplates: true
} );

Options orion/options/options.js

Options.init( 'Dashboard', true );
Options.set( 'adminHomeRoute', 'Dashboard' ); // override the default admin home route

Note: I tried the default orion home but no effect

I'm run out of options.

Am I missing something obvious or overlooked?

Here's the screen capture of the issue: pais-urlfilckering

Ajaxsoap commented 8 years ago

It looks like the issue is my custom login template, what I did was, create a custom atForm and replaces it like this Template.customAtForm.replaces("atForm") using aldeed:template-extension. No need to override the orion login template, voila, the flickering has banished forever! :)