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?
383 Views Asked by OleksandrYa At
0
There are 0 best solutions below
Related Questions in NODE.JS
- How to solve CERT_UNTRUSTED error in nodemailer
- Run a loop over a callback, node js
- Implementing prerender.io middleware in sails.js
- Token based authorization in nodejs/ExpressJs and Angular(Single Page Application)
- formatting path string in javascript
- One to One screensharing using WEBRTC
- Create polygon from grid (for collisions)
- Strange npm behavior when installing packages like grunt
- Convert JSON.gz to JSON in node js
- "Your npm version is outdated." but it's not. While install yo
- Why put methods on the prototype of a class instead of declaring them in the constructor?
- Node JS Async Response
- mongoose get property from nested schema after `group`
- Cannot Receive Incoming call on Twilio android Client
- How can I change a specific line in a file with node js?
Related Questions in HTTP-STATUS-CODE-404
- Magento returns 404 page randomly
- Error 404 not going after Wordpress Permalink change to custom structure
- Accessing bundles/jquery externally "Failed to load resource: the server responded with a status of 404 (Not Found)"
- PHP won't appear in my local host
- How to setup a general 301 redirect that will ignore the ending url string
- Debugging a 404 error for an existing page
- Maven Tomcat plugin - 404 WebServlet not found
- In Angular project reference to php script give 404 (Not Found) locally, but works on live site
- PHP include Page.php, if Page=404 { PHP include API { WRITE API as Page.php (Storing APIs on Servers)
- Laravel 5.0 custom 404 does not use middleware
- Getting HTTP Status 404 - Spring mvc
- Returning Error JSON from RESTful Spring API on 404 (Ambiguous @ExceptionHandler)
- How to continue ajax remaining requests if file not found?
- Convert 404/500 or any other error code to 301
- Turn 404 url into search
Related Questions in VUE-ROUTER
- Call from component to parent with $emit
- Best way to implement history function inside Vue.js modal
- <transition> can only be used on a single element
- Vue.js page transition fade effect with vue-router
- Change component and update data (ajax) when vue-router item is clicked
- VueJS Adding data from query parameters
- Control modals using vue router
- Vue router shows lazy-loaded route components only once
- How to remove the hash # when the base URL is not root?
- Pass global JSON to Vue app from flask webserver
- Vue-router reload components
- Separating script, style and template in Vue.js and Webpack
- Click on link changes the url but not the content/data on page
- Vue.js router init works with router.map not with the Router constructor
- How can I re initialize same components in different routes
Related Questions in VUE-STOREFRONT
- Webpack + Vue Storefront: dist .js file contains multiple "\n//\n"
- Vue Storefront: Display labels for custom attribute filter instead of option id
- Node.js docker container exits with exit code 0 after yurn start completes successfully
- Need help using `vsf-customer` cookie in vsf2 extended with Nuxt3
- What causes Rich Test Resuls to read different values that I what see in Chrome/Firefox inspect element?
- Vue-Storefront | show item in cart for the item added on magento cart for same sku and id
- How to extend core modules of Vue Storefront
- VueJS | Method "watch" has type "object" in the component definition
- Can not follow stack trace
- Shopware pwa ERROR [MIDDLEWARE][DOMAINS] Cannot read properties of undefined (reading 'data')
- I need to deploy vuestorefront to a bucket s3 or amplify,
- AWS Amplify redirect middleware NuxtJs requests not working
- Vue storefront: how to override function inside helper?
- Rewrite .htaccess to Nginx configuration format to proxy different URLs to different ports
- How to add custom custom product filter in vue-storefront
Related Questions in VUE-SERVER-RENDERER
- vue-server-renderer not able to build bundle file
- Django + Vue.js + SSR
- Nuxt window is not defined on server-side rendering
- Is there any other way to fetch data instead of prefetch in vue hacker news
- Vue.js dev server is incrementing the port when using yarn serve?
- Giving 404 for only '/' route (Nuxt JS) - Shared Hosting Deployment
- vue-i18n,'TypeError: _vm.$t is not a function'
- <client-only> component is not working in Vue Server-side rendering using vue-server-renderer
- Is it possible render `page not found` with 404 http code without redirect?
- How to implement vuex-persistedstate in vue/ssr
- 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
- vue-server-renderer occured render function or template not defined in component: anonymous
- Vue packages version mismatch error while installing Nuxt.js: How to resolve?
- Is there any way to pass a value from Vue js component to blade template
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)
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?