stellarbb / devops

0 stars 0 forks source link

Central Office 404 Page #16

Open playcock opened 3 weeks ago

playcock commented 3 weeks ago

Feature Request

Would we be interested in a proper 404 page in Central Office and/or Centralpoint? It might be beneficial in CP as we retire pages there and bring them into CO.

Use case

This is what I see in CO when a page does not exist: image

This is what I see in CP when a page does not exist: image

Suggested implementation

GitHub and other websites have 404 pages. Why not create our own? We can customize it too. GitHub's 404 page looks like this: image

Suggested steps

No response

playcock commented 2 weeks ago

@jalcantaras I assigned this to you for mockup design.

jalcantaras commented 2 weeks ago

Here is a concept simple and it will be cool if the user click on the link to create a ticket that automatically grabs the URL that has the 404 404-error

playcock commented 2 weeks ago

@jalcantaras I like the idea behind the link. Nice.

@jduncan-sbb We should share with Rich to gain design approval.

playcock commented 1 week ago

@jalcantaras Your mockup has been approved by Rich.

jalcantaras commented 5 days ago

@playcock So after doing research if we want to do a 404 or 500 we can setup the redirects on .htacess on cp and dolibarr. Unless Backend devs and engineers have a better option.

One option is:

https://stackoverflow.com/questions/19962787/rewrite-url-after-redirecting-404-error-htaccess

I still need to create a simple module to create the custom page. HTML and CSS is done on code but still need to have a place on dolibarr the screenshot below was me playing with the new code inserted in inspector. Still need to do css for the dark theme module.

image

playcock commented 5 days ago

500 error page would be nice too.

This is what I on my sandbox htacess for Central Office.

RewriteEngine on
ErrorDocument 404   /co/404.php