-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Addons based on HTTP status code #385
Comments
Examples:
Those pages should show the flyout menu at the bottom right, but it's not there. |
It seems the `isEnabled` method wasn't updated to accept the `httpStatus` and that's why it wasn't working fine. Now, the Ad won't be shown on pages like this one: https://sphinx-rtd-theme.readthedocs.io/en/stable/notfound Related #385
@agjohnson what do you think? |
It seems the `isEnabled` method wasn't updated to accept the `httpStatus` and that's why it wasn't working fine. Now, the Ad won't be shown on pages like this one: https://sphinx-rtd-theme.readthedocs.io/en/stable/notfound Related #385 Closes #386
It doesn't feel like there is a good blanket default here. Even if a user has a custom 404 page they might still not want the flyout, notifications, or other addons on their error pages. This might come down to explicit configuration. |
Yeah, that probably makes sense. What granularity of explicit configuration are you thinking about? Per addon? Per http status code? Both? Like,
|
Hrm, not sure really. I'm not feeling we need to offer configuration options by status code, that feels excessive. If we have enough users asking for this, it maybe is worth a configuration option on each addon. I expect that themes are most likely to dictate whether error pages have our elements on them though. It would be good to design starting from there probably. |
OK, that makes sense. I will leave this issue aside for now then until we have more feedback from users. There is no need to complicate it currently, in particular, if we don't have the use cases well defined. |
In #373 we started making usage of the HTTP status code to decide whether or not show specific addons on those pages. We are not showing the flyout and ad on 404 pages, for example. However, if the page is customized (using
sphinx-notfound-page
) I think we still want to show them. What would be a good way to implement this logic? Should we add another META tag via CF to communicate if the 404 page is custom or not?The text was updated successfully, but these errors were encountered: