You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mxnet.apache.org by GitBox <gi...@apache.org> on 2018/09/10 20:35:20 UTC

[GitHub] aaronmarkham edited a comment on issue #12426: Consistent website theme and custom 404

aaronmarkham edited a comment on issue #12426: Consistent website theme and custom 404
URL: https://github.com/apache/incubator-mxnet/pull/12426#issuecomment-420050443
 
 
   When a request has `/api` in the URL, sidebar.js triggers and tries to a bunch things to the layout which don't exist on the error page. Using the following would leave the URL intact after a redirect.
   ```
   ErrorDocument 404 /error/404.html
   ```
   Rather than try to fix the js, I updated the redirect to use a static URL which forces the URL to change thereby bypassing the theme.
   ```
   ErrorDocument 404 https://mxnet.incubator.apache.org/error/404.html
   ```
   So, if you preview this, you won't get to see the error page because it doesn't exist yet. But you can still visit it manually here: 
   http://34.201.8.176/error/404.html

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services