Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Route overwriting fix #1

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Route overwriting fix #1

wants to merge 2 commits into from

Conversation

denisbetsi
Copy link
Owner

Small change that allows the route to be overwritten. Current behavior:
F.route('/',view_index);
F.route('/',view_index2);

Even though we're specifying route for the 2nd time with view_index2, view_index 1 will always be used. Routes keep getting pushed into an array and right now it's 1st come 1st serve. So this fix checks if route with that destination is already in place and overwrites it.

Small change that allows the route to be overwritten. Current behavior:
F.route('/',view_index);   
F.route('/',view_index2);

Even though we're specifying route for the 2nd time with view_index2, view_index 1 will always be used. Routes keep getting pushed into an array and right now it's 1st come 1st serve. So this fix checks if route with that destination is already in place and overwrites it.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant