Skip to content

Commit 3aa24e4

Browse files
svickdanroth27
authored andcommitted
Fixed broken links
1 parent 8209e68 commit 3aa24e4

15 files changed

+25
-23
lines changed

aspnet/fundamentals/localization.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ The `IViewLocalizer <https://docs.asp.net/projects/api/en/latest/autoapi/Microso
6868
.. literalinclude:: localization/sample/Views/Home/About.cshtml
6969
:language: HTML
7070

71-
The default implementation of ``IViewLocalizer`` finds the resource file based on the view's file name. There is no option to use a global shared resource file. ``ViewLocalizer`` implements the localizer using `IHtmlLocalizer <IHtmlLocalizer>`__, so Razor doesn't HTML encode the localized string. You can parameterize resource strings and ``IViewLocalizer`` will HTML encode the parameters, but not the resource string. Consider the following Razor markup:
71+
The default implementation of ``IViewLocalizer`` finds the resource file based on the view's file name. There is no option to use a global shared resource file. ``ViewLocalizer`` implements the localizer using `IHtmlLocalizer <https://docs.asp.net/projects/api/en/latest/autoapi/Microsoft/AspNet/Mvc/Localization/IHtmlLocalizer/index.html>`__, so Razor doesn't HTML encode the localized string. You can parameterize resource strings and ``IViewLocalizer`` will HTML encode the parameters, but not the resource string. Consider the following Razor markup:
7272

7373
.. code-block:: HTML
7474

aspnet/fundamentals/logging.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ The call to the log method can utilize a format string with named placeholders (
3838
:lines: 35
3939
:dedent: 16
4040

41-
In your real world applications, you will want to add logging based on application-level, not framework-level, events. For instance, if you have created a Web API application for managing To-Do Items (see `Building Your First Web API with ASP.NET Core </tutorials/first-web-api>`_), you might add logging around the various operations that can be performed on these items.
41+
In your real world applications, you will want to add logging based on application-level, not framework-level, events. For instance, if you have created a Web API application for managing To-Do Items (see :doc:`/tutorials/first-web-api`), you might add logging around the various operations that can be performed on these items.
4242

4343
The logic for the API is contained within the `TodoController`, which uses :doc:`dependency-injection` to request the services it requires via its constructor. Ideally, classes should follow this example and use their constructor to `define their dependencies explicitly <http://deviq.com/explicit-dependencies-principle/>`_ as parameters. Rather than requesting an `ILoggerFactory` and creating an instance of `ILogger` explicitly, `TodoController` demonstrates another way to work with loggers in your application - you can request an `ILogger<T>` (where `T` is the class requesting the logger).
4444

aspnet/fundamentals/middleware.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ Run, Map, and Use
8383
You configure the HTTP pipeline using the extensions methods Run_, Map_, and Use_. By convention, the ``Run`` method is simply a shorthand way of adding middleware to the pipeline that doesn't call any other middleware (that is, it will not call a ``next`` request delegate). Thus, ``Run`` should only be called at the end of your pipeline. ``Run`` is a convention, and some middleware components may expose their own Run[Middleware] methods that should only run at the end of the pipeline. The following two examples (one using ``Run`` and the other ``Use``) are equivalent to one another, since the second one doesn't use its ``next`` parameter:
8484

8585
.. _Run: https://docs.asp.net/projects/api/en/latest/autoapi/Microsoft/AspNet/Builder/RunExtensions/index.html#meth-Microsoft.AspNet.Builder.RunExtensions.Run
86-
.. _Map: Map https://docs.asp.net/projects/api/en/latest/autoapi/Microsoft/AspNet/Builder/MapExtensions/index.html#meth-Microsoft.AspNet.Builder.MapExtensions.Map
86+
.. _Map: https://docs.asp.net/projects/api/en/latest/autoapi/Microsoft/AspNet/Builder/MapExtensions/index.html#meth-Microsoft.AspNet.Builder.MapExtensions.Map
8787
.. _Use: https://docs.asp.net/projects/api/en/latest/autoapi/Microsoft/AspNet/Builder/UseExtensions/index.html#meth-Microsoft.AspNet.Builder.UseExtensions.Use
8888

8989

aspnet/fundamentals/owin.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ Another example of how OWIN-based servers' features can be leveraged by ASP.NET
9292
:linenos:
9393
:emphasize-lines: 7, 9-10
9494

95-
This `sample <https://github.com/aspnet/Docs/tree/master/docs/fundamentals/owin/sample>`__ is configured using the same ``NowinServerFactory`` as the previous one - the only difference is in how the application is configured in its ``Configure`` method. A simple test using `a simple websocket client <https://chrome.google.com/webstore/detail/simple-websocket-client/pfdhoblngboilpfeibdedpjgfnlcodoo?hl=en>`_ demonstrates that the application works as expected:
95+
This `sample <https://github.com/aspnet/Docs/tree/master/aspnet/fundamentals/owin/sample>`__ is configured using the same ``NowinServerFactory`` as the previous one - the only difference is in how the application is configured in its ``Configure`` method. A simple test using `a simple websocket client <https://chrome.google.com/webstore/detail/simple-websocket-client/pfdhoblngboilpfeibdedpjgfnlcodoo?hl=en>`_ demonstrates that the application works as expected:
9696

9797
.. image:: owin/_static/websocket-test.png
9898

aspnet/fundamentals/request-features.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ ASP.NET Core defines a number of `HTTP feature interfaces <https://docs.asp.net/
2020
`IHttpResponseFeature <https://docs.asp.net/projects/api/en/latest/autoapi/Microsoft/AspNet/Http/Features/IHttpResponseFeature/index.html>`_
2121
Defines the structure of an HTTP response, including the status code, headers, and body of the response.
2222

23-
`IHttpAuthenticationFeature <https://docs.asp.net/projects/api/en/latest/autoapi/Microsoft/AspNet/Http/Features/IHttpAuthenticationFeature/index.html>`_
23+
`IHttpAuthenticationFeature <https://docs.asp.net/projects/api/en/latest/autoapi/Microsoft/AspNet/Http/Features/Authentication/IHttpAuthenticationFeature/index.html>`_
2424
Defines support for identifying users based on a ``ClaimsPrincipal`` and specifying an authentication handler.
2525

2626
`IHttpUpgradeFeature <https://docs.asp.net/projects/api/en/latest/autoapi/Microsoft/AspNet/Http/Features/IHttpUpgradeFeature/index.html>`_

aspnet/migration/http-modules.rst

+3-1
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ However, in ASP.NET Core a new configuration model is used in place of *Web.conf
192192

193193
The new :doc:`configuration system </fundamentals/configuration>` gives you these options to solve this:
194194

195-
* Directly inject the options into the middleware, as shown in the `next section <loading-middleware-options-through-direct-injection>`_.
195+
* Directly inject the options into the middleware, as shown in the :ref:`next section <loading-middleware-options-through-direct-injection>`.
196196
* Use the :ref:`options pattern <options-config-objects>`:
197197

198198
1. Create a class to hold your middleware options, for example:
@@ -262,6 +262,8 @@ The new :doc:`configuration system </fundamentals/configuration>` gives you thes
262262

263263
This is not limited to ``IOptions`` objects. Any other object that your middleware requires can be injected this way.
264264

265+
.. _loading-middleware-options-through-direct-injection:
266+
265267
Loading middleware options through direct injection
266268
---------------------------------------------------
267269
The options pattern has the advantage that it creates loose coupling between options values and their consumers.

aspnet/mvc/controllers/filters.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ By `Steve Smith`_
99
:local:
1010
:depth: 1
1111

12-
`View or download sample from GitHub <https://github.com/aspnet/Docs/tree/master/mvc/controllers/filters/sample>`_.
12+
`View or download sample from GitHub <https://github.com/aspnet/Docs/tree/master/aspnet/mvc/controllers/filters/sample>`_.
1313

1414
How do filters work?
1515
--------------------
@@ -321,4 +321,4 @@ Filters vs. Middleware
321321

322322
In general, filters are meant to handle cross-cutting business and application concerns. This is often the same use case for :doc:`middleware </fundamentals/middleware>`. Filters are very similar to middleware in capability, but let you scope that behavior and insert it into a location in your app where it makes sense, such as before a view, or after model binding. Filters are a part of MVC, and have access to its context and constructs. For instance, middleware can't easily detect whether model validation on a request has generated errors, and respond accordingly, but a filter can easily do so.
323323

324-
To experiment with filters, `download, test and modify the sample <https://github.com/aspnet/Docs/tree/master/mvc/controllers/filters/sample>`_.
324+
To experiment with filters, `download, test and modify the sample <https://github.com/aspnet/Docs/tree/master/aspnet/mvc/controllers/filters/sample>`_.

aspnet/performance/caching/response.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Response Caching
77
:local:
88
:depth: 1
99

10-
`View or download sample code <https://github.com/aspnet/Docs/tree/master/aspnet/mvc/performance/response-caching/sample>`_
10+
`View or download sample code <https://github.com/aspnet/Docs/tree/master/aspnet/performance/caching/response-caching/sample>`_
1111

1212
What is Response Caching
1313
------------------------

aspnet/testing/integration-testing.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ Refactoring is the process of changing an application's code to improve its desi
122122
123123
This code works, but it's far from how we would like to implement this kind of functionality in an ASP.NET application, even as simple a one as this is. Imagine what the ``Configure`` method would look like if we needed to add this much code to it every time we added another URL endpoint!
124124

125-
One option we can consider is adding `MVC <http://docs.asp.net/projects/mvc>`_ to the application, and creating a controller to handle the prime checking. However, assuming we don't currently need any other MVC functionality, that's a bit overkill.
125+
One option we can consider is adding :doc:`MVC </mvc/index>` to the application, and creating a controller to handle the prime checking. However, assuming we don't currently need any other MVC functionality, that's a bit overkill.
126126

127127
We can, however, take advantage of ASP.NET Core :doc:`middleware </fundamentals/middleware>`, which will help us encapsulate the prime checking logic in its own class and achieve better `separation of concerns <http://deviq.com/separation-of-concerns/>`_ within the ``Configure`` method.
128128

@@ -159,4 +159,4 @@ Additional Resources
159159
--------------------
160160

161161
- :doc:`unit-testing`
162-
- :doc:`/fundamentals/middleware`
162+
- :doc:`/fundamentals/middleware`

aspnet/testing/unit-testing.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ ASP.NET Core has been designed with testability in mind, so that creating unit t
99
:local:
1010
:depth: 1
1111

12-
`View or download sample code <sample>`__
12+
`View or download sample code <https://github.com/aspnet/Docs/tree/master/aspnet/testing/unit-testing/sample>`__
1313

1414
Getting Started with Testing
1515
----------------------------

aspnet/tutorials/first-mvc-app/controller-methods-views.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ Run the application and navigate to the ``/Movies`` URL. Click an **Edit** link.
139139
:language: HTML
140140
:emphasize-lines: 1,6,10,17,24, 28
141141

142-
The ``<input>`` elements are in an ``HTML <form>`` element whose ``action`` attribute is set to post to the ``/Movies/Edit/id`` URL. The form data will be posted to the server when the ``Save`` button is clicked. The last line before the closing ``</form>`` element shows the hidden `XSRF <:doc:/security/anti-request-forgery>`__ token generated by the `Form Tag Helper <http://www.davepaquette.com/archive/2015/05/18/mvc-6-form-tag-helper.aspx>`__.
142+
The ``<input>`` elements are in an ``HTML <form>`` element whose ``action`` attribute is set to post to the ``/Movies/Edit/id`` URL. The form data will be posted to the server when the ``Save`` button is clicked. The last line before the closing ``</form>`` element shows the hidden :doc:`XSRF </security/anti-request-forgery>` token generated by the `Form Tag Helper <http://www.davepaquette.com/archive/2015/05/18/mvc-6-form-tag-helper.aspx>`__.
143143

144144
Processing the POST Request
145145
--------------------------------------
@@ -151,7 +151,7 @@ The following listing shows the ``[HttpPost]`` version of the ``Edit`` action me
151151
:lines: 109-122
152152
:dedent: 8
153153

154-
The ``[ValidateAntiForgeryToken]`` attribute validates the hidden `XSRF <:doc:/security/anti-request-forgery>`__ token generated by the anti-forgery token generator in the `Form Tag Helper <http://www.davepaquette.com/archive/2015/05/18/mvc-6-form-tag-helper.aspx>`__.
154+
The ``[ValidateAntiForgeryToken]`` attribute validates the hidden :doc:`XSRF </security/anti-request-forgery>` token generated by the anti-forgery token generator in the `Form Tag Helper <http://www.davepaquette.com/archive/2015/05/18/mvc-6-form-tag-helper.aspx>`__.
155155

156156
The :doc:`model binding </mvc/models/model-binding>` system takes the posted form values and creates a ``Movie`` object that's passed as the ``movie`` parameter. The ``ModelState.IsValid`` method verifies that the data submitted in the form can be used to modify (edit or update) a ``Movie`` object. If the data is valid, the movie data is saved to the ``Movies`` collection of the database(``ApplicationDbContext`` instance). The new movie data is saved to the database by calling the ``SaveChanges`` method of ``ApplicationDbContext``. After saving the data, the code redirects the user to the ``Index`` action method of the ``MoviesController`` class, which displays the movie collection, including the changes just made.
157157

aspnet/tutorials/first-mvc-app/new-field.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Adding a New Field
33

44
By `Rick Anderson`_
55

6-
In this section you'll use `Entity Framework <http://ef.readthedocs.org/en/latest/getting-started/index.html>`__ Code First Migrations to migrate some changes to the model classes so the change is applied to the database.
6+
In this section you'll use `Entity Framework <http://ef.readthedocs.io/en/latest/getting-started.html>`__ Code First Migrations to migrate some changes to the model classes so the change is applied to the database.
77

88
By default, when you use Entity Framework Code First to automatically create a database, as you did earlier in this tutorial, Code First adds a table to the database to help track whether the schema of the database is in sync with the model classes it was generated from. If they aren't in sync, the Entity Framework throws an error. This makes it easier to track down issues at development time that you might otherwise only find (by obscure errors) at run time.
99

@@ -85,4 +85,4 @@ The ``migrations add`` command tells the migration framework to examine the curr
8585

8686
If you delete all the records in the DB, the initialize will seed the DB and include the ``Rating`` field. You can do this with the delete links in the browser or from SSOX.
8787

88-
Run the app and verify you can create/edit/display movies with a ``Rating`` field. You should also add the ``Rating`` field to the ``Edit``, ``Details``, and ``Delete`` view templates.
88+
Run the app and verify you can create/edit/display movies with a ``Rating`` field. You should also add the ``Rating`` field to the ``Edit``, ``Details``, and ``Delete`` view templates.

aspnet/tutorials/first-mvc-app/search.rst

+3-3
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ Double tap the **http://localhost:1235/Movies HTTP POST 200** line and then tap
124124

125125
.. image:: search/_static/f12_rb.png
126126

127-
You can see the search parameter and `XSRF <:doc:../../security/anti-request-forgery>`__ token in the request body. Note, as mentioned in the previous tutorial, the `Form Tag Helper <http://www.davepaquette.com/archive/2015/05/18/mvc-6-form-tag-helper.aspx>`__ generates an `XSRF <:doc:../../security/anti-request-forgery>`__ anti-forgery token. We're not modifying data, so we don't need to validate the token in the controller method.
127+
You can see the search parameter and :doc:`XSRF <../../security/anti-request-forgery>` token in the request body. Note, as mentioned in the previous tutorial, the `Form Tag Helper <http://www.davepaquette.com/archive/2015/05/18/mvc-6-form-tag-helper.aspx>`__ generates an :doc:`XSRF <../../security/anti-request-forgery>` anti-forgery token. We're not modifying data, so we don't need to validate the token in the controller method.
128128

129129
Because the search parameter is in the request body and not the URL, you can't capture that search information to bookmark or share with others. We'll fix this by specifying the request should be ``HTTP GET``. Notice how intelliSense helps us update the markup.
130130

@@ -138,7 +138,7 @@ Now when you submit a search, the URL contains the search query string. Searchin
138138

139139
.. image:: search/_static/search_get.png
140140

141-
The `XSRF <:doc:../../security/anti-request-forgery>`__ token and any other posted form elements will also be added to the URL.
141+
The :doc:`XSRF <../../security/anti-request-forgery>` token and any other posted form elements will also be added to the URL.
142142

143143
Adding Search by Genre
144144
--------------------------
@@ -183,4 +183,4 @@ Add an ``Html.DropDownList`` helper to the *Views/Movies/Index.cshtml* file. The
183183

184184
.. note:: The next version of this tutorial will replace the ``Html.DropDownList`` helper with the `Select Tag Helper <http://www.davepaquette.com/archive/2015/05/18/mvc6-select-tag-helper.aspx>`__.
185185

186-
Test the app by searching by genre, by movie title, and by both.
186+
Test the app by searching by genre, by movie title, and by both.

aspnet/tutorials/first-web-api.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ ASP.NET Core has built-in support for MVC building Web APIs. Unifying the two fr
1616
:local:
1717
:depth: 1
1818

19-
`View or download sample code <https://github.com/aspnet/Docs/tree/master/aspnet/mvc/getting-started/first-web-api/sample>`__
19+
`View or download sample code <https://github.com/aspnet/Docs/tree/master/aspnet/tutorials/first-web-api/sample>`__
2020

2121
Overview
2222
--------

webhooks/source.rst

+3-3
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@ Nuget Packages
1515
Microsoft ASP.NET WebHooks is also available as preview Nuget packages which means that you have to select the Preview
1616
flag in Visual Studio in order to see them.
1717

18-
The `Nuget packages <http://nuget.org/packages/Microsoft.AspNet.WebHooks>`_ are devided into three parts:
18+
The `Nuget packages <https://nuget.org/packages?q=Microsoft.AspNet.WebHooks>`_ are devided into three parts:
1919

2020
* `Common <https://www.nuget.org/packages?q=Microsoft.AspNet.WebHooks.Common>`_: A common package that is shared between senders and receivers.
2121

22-
* `Sender <https://www.nuget.org/packages?q=Microsoft.AspNet.WebHooks.Custom>`_ A set of packages supporting sending your own WebHooks to others.
22+
* `Sender <https://www.nuget.org/packages?q=Microsoft.AspNet.WebHooks.Custom>`_: A set of packages supporting sending your own WebHooks to others.
2323
The functionality for sending WebHooks is described in more detail in :doc:`sending/index`.
2424

25-
* `Receivers <https://www.nuget.org/packages?q=Microsoft.AspNet.WebHooks.Receivers>`_ A set of packages supporting receiving WebHooks from others.
25+
* `Receivers <https://www.nuget.org/packages?q=Microsoft.AspNet.WebHooks.Receivers>`_: A set of packages supporting receiving WebHooks from others.
2626
The functionality for receiving WebHooks is described in more detail in :doc:`receiving/index`.

0 commit comments

Comments
 (0)