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

Redirect user to detail page after s/he has entered a realisation #45

Open
davidbauer opened this issue Jun 7, 2014 · 1 comment
Open

Comments

@davidbauer
Copy link
Collaborator

Currently, if a user enters a realisation to a prediction, he is redirected to the home page on submit. This is not ideal. He should be redirected back to the prediction detail page so he can see his contribution.

@davidbauer
Copy link
Collaborator Author

In line37 of SubmitRealisationCtrl.js, we have
$location.path($scope.language + "/p/" + $filter('slugify')($scope.prediction.source.author) + "/" + $filter('slugify')($scope.prediction.source.title) + "/" + $scope.prediction.id);

Shouldn't that do just that?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant