I'm using vue-storefront.
I need render 404 page without redirect and with 404 http code.
They are using vue-router + vue-server-renderer
I'm trying to catch 404 error, then rendering my component PageNotFound, setting status 404 to response and returning html.
After that my html replaced empty component (for example Category)
Or works correct but url (in browser) changing to */page-not-found.
Any ideas ?
Thanks.
Is it possible render `page not found` with 404 http code without redirect?
386 views Asked by OleksandrYa At
0
There are 0 answers
Related Questions in NODE.JS
- Using Puppeteer to scrape a public API only when the data changes
- How to request administrator rights?
- How do I link two models in mongoose?
- Variable inside a Variable, not updating
- Unable to Post Form Data to MongoDB because of picturepath
- Connection terminated unexpectedly while performing multi row insert using pg-promise
- Processing multiple forms in nodejs and postgresql
- Node.js Server + Socket.IO + Android Mobile Applicatoin XHR Polling Error...?
- How to change the Font Weight of a SelectValue component in React when a SelectItem is selected?
- My unban and ban commands arent showing when i put the slash
- how to make read only file/directory in Mac writable
- How can I outsource worker processes within a for loop?
- Get remote MKV file metadata using nodejs
- Adding google-profanity-words to web page
- Products aren't displayed after fetching data from mysql db (node.js & express)
Related Questions in HTTP-STATUS-CODE-404
- Laravel API DELETE Requests of Resource Controller and Getting 404 Not Found Error (for Second time Delete)
- Next js app throwing 404 error when deployed to vercel, even though it works fine on local
- Tailwind CSS background image does not work on github pages
- npm ERR! code E404 Not Found - GET https://registry.npmjs.org/inquirer 'inquirer@*' is not in this registry.A complete log of this run canbefoundin:
- Problem with changing default NGINX 404 error page
- What can I troubleshoot next to figure out why I get 404 messages?
- Basic Spring Boot application always giving 404/Whitelabel error
- JAX-RS webapp deployed to Tomcat returns HTTP 404 error while it works fine in Eclipse
- it ok return 200 with notfound function and suspese?
- Failed to load resource: the server responded with a status of 404 (Not Found) ProductList.js:14 Error fetching products: AxiosError fe
- Page_404_error (production error) when I trigger URL endpoint from postman to production server
- Page not found when following wagtail tutorial adding tags
- Calling a url in chrome browser or in postman working fine but using axios it is giving 404 error
- I need SSO and Maven to work together in a Tomcat 9 Eclipse project, I have check the usual suspects but I think I missed something
- I have a POST 404(Not Found) error, I can't find a way to fix it
Related Questions in VUE-ROUTER
- Pass dynamic object data via nuxt-link to component
- Uncaught TypeError: _projects_js__WEBPACK_IMPORTED_MODULE_2__.default is undefined
- Vue 3 router changing <routing-view/> but not URL
- Vue Router and AWS Amplify
- How to check param route in router
- Vue router with Wordpress
- Route requests as POST on Quasar (Vue3) client application
- Handling a this.$router.replace(href); in vue 2
- How can I conditionally include content without a jarring animation?
- How to efficiently Fetch Dynamic Routes?
- Vue Query get parameters as an array
- Vue prop from optional router param is empty string instead of default value
- My elements will only appear (sometimes) after hot reloading, but not in first load
- Getting blank page while trying to use props in history mode in vue router
- How to get current route in Vue 3 outside of component?
Related Questions in VUE-STOREFRONT
- why `GraphQl` is not being update?
- vue-storefront 2.623.0 page stop rendering the page
- why I am getting `useCart/addItem Error: Product Type undefined not supported in add to cart yet` error in `vue storefront`?
- why i m getting my cms page and myWeb page from same route?
- What causes Rich Test Resuls to read different values that I what see in Chrome/Firefox inspect element?
- Need help using `vsf-customer` cookie in vsf2 extended with Nuxt3
- Trustpilot widget (Trustbox) not loading correctly, only showing the fallback
- Config element \"FrameworkDataImageContentInterface\" is not declared in GraphQL schema
- Vue Storefront keeps giving error showing products
- Vue Storefront Firebase SSR - Not working
- Error expects string as the type, but found undefined with commit state to clear
- Vuestorefront not using correct tax and price in cart
- Must use import to load ES Module after creating vuestorefront project
- vue.js dynamic component renders twice with itself as child component
- Shopware PWA custom route
Related Questions in VUE-SERVER-RENDERER
- vue-i18n,'TypeError: _vm.$t is not a function'
- Vue packages version mismatch error while installing Nuxt.js: How to resolve?
- vue-server-renderer occured render function or template not defined in component: anonymous
- Vue.js dev server is incrementing the port when using yarn serve?
- how to rendering vue-component in vue file with (vue-server-renderer)
- Vue Server Side Rendering: Error in beforeCreate hook: ReferenceError: document is not defined
- <client-only> component is not working in Vue Server-side rendering using vue-server-renderer
- Is there any way to pass a value from Vue js component to blade template
- Is it possible render `page not found` with 404 http code without redirect?
- Giving 404 for only '/' route (Nuxt JS) - Shared Hosting Deployment
- vue-server-renderer not able to build bundle file
- How to implement vuex-persistedstate in vue/ssr
- Is there any other way to fetch data instead of prefetch in vue hacker news
- vue ssr webpack configuration
- Nuxt window is not defined on server-side rendering
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)