nanodesigns / nanosupport

Create a fully featured Support Center in your WordPress setup without any third party dependency, completely FREE. Get a built-in Knowledgebase too. The plugin is available on WordPress.org repository:
https://wordpress.org/plugins/nanosupport/
GNU General Public License v2.0
50 stars 13 forks source link

404 on Tickets for Not Logged in members #27

Closed wptech68 closed 5 years ago

wptech68 commented 7 years ago

When someone visit the ticket URL (permalink) without being loged in, it shows the standard 404 error page. I think it should show something like: "You need to login first to view this ticket" so user knows why the ticket was not found, if not looks like it was removed from the system

mayeenulislam commented 7 years ago

That's the default behavior of WordPress Private posts. Let's see and hope how can we change the behavior...

wptech68 commented 7 years ago

ohh, I see no problem, a 404 plugin will do the trick

mayeenulislam commented 5 years ago

After consulting many [possible] solutions, like:

  1. Prevent private post 404 - WPSE
  2. Show a special message for private page? - WPSE
  3. Redirect private page 404 errors to the login screen with a message - Gist :no_entry:
  4. ...

we actually came to an ending that it's a kind of restricted by WP Core.

Though we thought some ways, like grabbing the slug from the URL and find the post using a db query to identify a ticket and redirect users accordingly, using:

But as WordPress permalink might not always stick with a single pattern, so identifying slug won't be easy. We're restricted by the WP Core by many means:

So we concluded, it's a Won't Fix for NanoSupport as of now.