Coder Social home page Coder Social logo

realworldaspnetcore's People

Contributors

glennc avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

realworldaspnetcore's Issues

Some stuff from the demo is missing

Hi Glenn.

looks like some stuff from the demo is missing, like seq configuration for instance, etc.

I appreciate if you could push the latest snapshot of the code from the demo.

Thanks

webpack

Instead of all that gulp work can this vnext project be migrated to webpack using microsoft recommended setup?

by now everyone should be using:

  1. sass
  2. typescript
  3. bundling, minification for css and js

we need bundles when in #if RELEASE mode and all files when in #if DEBUG mode

status code not passed in

Hi @glennc

I'm trying to implement a custom error/404 page as you showed in your demo. In my startup I have it configured like this:

app.UseStatusCodePagesWithReExecute("/Home/Error/{0}");

and in my Home controller I have this:

    public IActionResult Error(int statusCode)
    {
        return View(statusCode);
    }

for a 404 it executes the controller and view ok but the statusCode is always 0

so I'm not able to customize the message based on the status code

am I doing something wrong?

is there any way to get the original url from custom status code handler?

based on your demo I'm doing this in my app:

app.UseStatusCodePagesWithReExecute("/Home/Error/{0}");

and in my home controller I have this:

   public IActionResult Error(int id)
    {
        if(id == 404)
        {
            log.LogWarning("handled 404 for url: " + HttpContext.Request.Path);
        }
        return View(id);
    }

but it logs as "handled 404 for url: /Home/Error/404"

is there any way I can get the original url that is what the user sees in the browser?

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.