Giter VIP home page Giter VIP logo

Comments (6)

jgauffin avatar jgauffin commented on August 29, 2024

This has nothing to do with Griffin.MvcContrib. You should read up on how urls are generated for areas.

from griffin.mvccontrib.

jspeshu avatar jspeshu commented on August 29, 2024

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.

jgauffin avatar jgauffin commented on August 29, 2024

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.

jspeshu avatar jspeshu commented on August 29, 2024

I still didn't get it but if it's not a bug it's all right. And Thank you.

from griffin.mvccontrib.

jgauffin avatar jgauffin commented on August 29, 2024

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.

MsbowElite avatar MsbowElite commented on August 29, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.