Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 1d81778

Browse filesBrowse files
committed
minor #15564 Removing full URL of error page preview (ThomasLandauer)
This PR was merged into the 4.4 branch. Discussion ---------- Removing full URL of error page preview Reason: The actual url (`http://localhost/index.php/` vs. `http://localhost` vs. `http://whatever` vs. ...) depends on the local web server config. If you're using the recommended nginx config at https://symfony.com/doc/current/setup/web_server_configuration.html#nginx, you'd have to remove `internal;`. I thought about explaining this, but in the end there are probably too many possible server configs to cover them all... Commits ------- c910afd Removing full URL of error page preview
2 parents d1d66a6 + c910afd commit 1d81778
Copy full SHA for 1d81778

File tree

1 file changed

+3
-6
lines changed
Filter options

1 file changed

+3
-6
lines changed

‎controller/error_pages.rst

Copy file name to clipboardExpand all lines: controller/error_pages.rst
+3-6Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -183,13 +183,10 @@ automatically when installing ``symfony/framework-bundle``):
183183
;
184184
};
185185
186-
With this route added, you can use URLs like these to preview the *error* page
187-
for a given status code as HTML or for a given status code and format.
186+
Now you can preview your error page on these two routes:
188187

189-
.. code-block:: text
190-
191-
http://localhost/index.php/_error/{statusCode}
192-
http://localhost/index.php/_error/{statusCode}.{format}
188+
* `/_error/{statusCode}` for HTML
189+
* `/_error/{statusCode}.{format}` for any other format
193190

194191
.. _overriding-non-html-error-output:
195192

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.