-
Notifications
You must be signed in to change notification settings - Fork 18
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
Area routes exposed even when exposeAllRoutes = "false" #18
Comments
That's strange, it should definitely be hiding the routes (and I have unit tests around that, although they can probably be improved). Could you please make a simple test case that replicates the issue and attach it here? |
Thanks for your pull request #19. I started working on this today but I realised that there's some other issues. I'm only checking the controller based on its name, so if you have multiple controllers called "HelloWorldController" (say, in two different areas), they will all be exposed. Additionally there needs to be some additional logic for areas. I think the logic for each area should be:
What do you think? |
The logic looks valid to me. On Thu, Aug 1, 2013 at 8:28 AM, Daniel Lo Nigro notifications@github.comwrote:
|
Thanks, this should be fixed now. Could you please try getting the latest version off the build server and see if it works as expected? Here's the direct .nupkg link: http://teamcity.codebetter.com/repository/download/bt1035/81883:id/RouteJs.Mvc4.1.2.0-dev.nupkg |
This seems to resolve the issue for me. Thanks. On Sun, Aug 4, 2013 at 9:12 AM, Daniel Lo Nigro notifications@github.comwrote:
|
When do you expect to push the changes up to NuGet? On Sun, Aug 4, 2013 at 4:01 PM, Jeremy Fensch jfensch@gmail.com wrote:
|
I just pushed these changes to NuGet now so if you update your packages you should see them :) |
I would expect that when is set in web.config that no routes are exposed until I decorate classes with the ExposeRoutesInJavaScript attribute. However, all my area routes appear to be exposed as Router.routes has 9 routes client-side. Is there something I'm missing?
The text was updated successfully, but these errors were encountered: