Comments (6)
This has nothing to do with Griffin.MvcContrib. You should read up on how urls are generated for areas.
from griffin.mvccontrib.
i thought the samples here( https://github.com/jgauffin/Samples/tree/master/Griffin.MvcContrib/Plugins/PluginSystemDemo.Mvc3 ) use Griffin.MvcContrib @ the background, for the menu items @ least. And I know how the urls get generated for areas. any ways the problem can be seen on the demo also may be that has some thing to do with Griffin.MvcContrib. if i'm not mistaken you have a plugin called messaging so when i type the url or click on the menu link messaging ( i.e. http://localhost/messaging). it works as expected. but after that all the menu links show or are liked i to an incorrect url e.g the the "About" menu is linked to (http://localhost/messaging/home/about/) which should be (http://localhost/home/about/) and if you have another plugin called someplugin it will also will be linked to (http://localhost/messaging) rather than being linked with (http://localhost/someplugin/what ever action) you are having currently.
from griffin.mvccontrib.
yes. That's why I've configured the menu incorrectly.
Links pointing at the "default" area must be configured to use the default route.
from griffin.mvccontrib.
I still didn't get it but if it's not a bug it's all right. And Thank you.
from griffin.mvccontrib.
The problem is that MVC thinks that all links that have no specified route/area should use the current area. It's normally not a problem since all views are just just for the own area.
It's however a problem for the root controllers/views since they do not specify an area:
@Html.ActionLink("About", "About", "Home")
What we need to change that to:
@Html.ActionLink("About", "About", "Home", new { area = "Default" })
"Default" should be the name of the route specified in global.asax.
See here: http://stackoverflow.com/questions/2036305/how-to-specify-an-area-name-in-an-action-link
from griffin.mvccontrib.
Man, I created some others class librarys, so if I add 8 class library to main Project via references, only one work, the others Html.ActionLink do nothing, why? I changed the names of areas, and if I teste each one alone, all will do well.
from griffin.mvccontrib.
Related Issues (20)
- LocalizedModelValidatorProvider does not contain a constructor that takes 1 arguments HOT 6
- Using EmbeddedFileProvider for plugin css/js files HOT 6
- Client validation for custom validation attributes doesn't work HOT 7
- System.Web.Mvc.CompareAttribute not working HOT 1
- RavenDB localization provider setup HOT 12
- Overwritting of texts in RavenDB on site refresh HOT 1
- RemoteAttribute Unobstrusive Text HOT 3
- Admin section - edit, delete icon do not show up HOT 2
- Attribute not recognized (MVC4): System.ComponentModel.DataAnnotations.EmailAddressAttribute : DataTypeAttribute HOT 5
- Problem with select html helper HOT 4
- Error HOT 1
- Caching of the ViewLocalizer HOT 2
- FileLocalizedTypeRepository loads json file for every translation HOT 2
- Localizing text for ModelState.AddModelError()
- data-val-number attribute is missing HOT 1
- Caching of RepositoryStringProvider results
- GriffinCaching : Closed Connection
- Web API support?
- No constructor for LocalizedModelValidatorProvider takes 1 argument
- Pull request for update to MVC5 and AppVeyor HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from griffin.mvccontrib.