Redirect with status code 301 #157

Closed
opened 2025-08-09 17:15:13 +00:00 by fergalmoran · 0 comments
Owner

Originally created by @hzinchenko on 2/23/2018

I'm using PrerenderTagHelper and I wanted to implement redirect logic. So I resolved promise in main-server.js with object
resolve({
statusCode: statusCode,
redirectUrl: redirectUrl,
html: html,
});
It works fine, but I noticed that I got a response with status code 302, which is not SEO friendly in my case. What I need is 301 status code
Is there any chance that redirect will be improved in the further release? And how would you recommend to deal the issue for now?
Thank you

*Originally created by @hzinchenko on 2/23/2018* I'm using PrerenderTagHelper and I wanted to implement redirect logic. So I resolved promise in main-server.js with object resolve({ statusCode: statusCode, redirectUrl: redirectUrl, html: html, }); It works fine, but I noticed that I got a response with status code 302, which is not SEO friendly in my case. What I need is 301 status code Is there any chance that redirect will be improved in the further release? And how would you recommend to deal the issue for now? Thank you
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/JavaScriptServices#157
No description provided.