Php Post Redirect To Another Page

0 views
Skip to first unread message
Message has been deleted

Nadia Grubb

unread,
Jul 12, 2024, 3:45:06 PM7/12/24
to imneywithssi

We have a large scale education event that we want to have a full page dedicated to. I've found that event pages have significantly less customization options than standard pages, so I'm hoping to redirect an event URL to its own page. That way, the event still shows up in our Events tab, but has a more in depth page. I've tried going into Settings > Advanced > URL Mapping and entering this:

php post redirect to another page


Descargar Zip https://jinyurl.com/2yOymO



I'm trying to do a very similar thing. Very limited customization on the event page so I would like to link it to its own page. Can you please provide a quick run down of what the process is. Is it tedious to do for every event, should this be an event platform?

I don't quite understand why the above worked, but it did. I didn't change anything about the Wild Fest main page, just added this to the event page. Now it redirects and still shows up on the calendar.

Hi there, I am looking to find a similar solution to this problem. I am looking to get some help with redirects on our website ( ). I am hoping to redirect this event page ( -walk-2023) to this landing page ( -walk-2023) as the event pages have limitations for design and layout, especially for a larger scale event. I have tried to use the redirect options from this resource ( -us/articles/205815308-URL-redirects), which seemed to do nothing. I learned this is because the event page is not disabled, however, I don't want to disable the event page as I want it to still show up in our "Events" page calendar. I looked into an option to insert custom code in to a code block on the event page following this forum ( -redirect-event-to-a-different-page/), but this seems to apply the script to the parent "Events" page, rather than just the event page, causing the entire parent page to refresh and redirect to the landing page, which is not desired. I am wondering if you might have a solution to this? Would greatly appreciate.

Hi @tuanphan, this works great, but if you want to undo it, you cannot access the post, as it will always redirect to the page. Any idea, how to get back into the post or event once you have added this snipped of code? Thank you ?

@tuanphan this code redirected just like a 301, but without the event being turned off and without entering a 301 in the URL mapping, thank you! I applied it to the event on July 30. oceanmindsangha.org.

It would be nice to be able to redirect successful submissions to another page where we advise what will happens next. Maybe it is not useful for everyone, but when using landing pages for the purpose of lead generation, it is good practice to let the lead know what to expect next.

I would like people who check out to see the usual confirmation page, but after a few seconds, be directed to another page on the site (general-info). If possible, the usual confirmation page would show additional text saying something like, "Redirecting to General Information page..." also.

Here's my thinking on this: the website www.mindfulcuisine.com offers cooking classes. People sign up for them on the website. There is a page on the website, General Info, that we want all participants to read before coming to class. There's also an Information and Liability Release form that we want the purchasers and any guests to complete prior to class. We've encouraged this on all the product-related pages, as well as the order confirmation email. We still have purchasers who don't fill out the form or don't ask their guests to read the page and complete the form. We end up having them do it right before class, resulting in delays. So, redirecting purchasers to the page (which includes the form as well) is a more direct push to read/complete before class. It doesn't address the guest issue, but it might result in some small improvement.

As for the redirect message I do know how to do this I will just need to wait for Squarespace to backup and running. Did you still want the order confirmation information (order number, total...) to still display or would you prefer for this to stay hidden and just display the message?

Squarespace is back up. I was able to get the text to print! The only bad thing is that one wouldn't see it without scrolling. I would have liked it to be below the text and above the page footer, but maybe that's not easily done.

Hi everyone, I'm hoping someone could help with some code injection. Is there a way I could redirect customers to a specific page after checkout depending on what product they bought ? So that would mean different redirect pages. Thank you !

@StaceyR I don't know if this would be helpful but I have used the 'add forms to checkout' option to attach specific terms and conditions as well as get additional information from customers when they select a product. You can also create a little check box that confirms they have read the terms and conditions (which you can also put a link to in it). It can be assigned to one specific product or several products. Its in the commerce section in your inventory. Click into the product to edit and then go to Form (if using the old editor) or scroll down to Customize then custom forms in the new editor.

Or, you could add a form during the checkout process that you can make required so they have to fill it out before completing their purchase. Go to Commerce> Checkout then scroll down to Additional Fields or Checkout Page: Store Policies. I'm not exactly sure what you need but may be helpful for a solution without using code.

In some cases you find it neccessary to intercept a POSTed page and redirect the user AND data. One example maybe that a user has submitted a form, but their login has expired and you need to reauthenticate them first. Another example could be purely for debugging purposes where you want to redirect a request after a long set of debugging output. In both case, you can use this set of functions:

I have a scenario where from one page in AEM, I need to call another AEM page in the same application and I need to pass some hidden parameters. I choose to do it via POST and below are the steps which I followed:

When I run the code, I am able to call the servlet through form submission but its not working. In the developer tool I see a 200 call but the page is not loading at all and I see the below error in browser:

If I try the same code in doGet method it works fine. Also if I use response.sendRedirect("/content/company/en/apps/welcomepage.html") it works fine too. But the problem with this is it initiates it as a new request to the page and it looses all the parameters which I get from the form submission. Could someone please let me know like how can I redirect a request to a page in AEM via POST since I need to pass some hidden parameters whic should not be visible in the url ?

Its just the thought I got. The use case is to call a page on AEM by passing some hidden params to the page which are used for some business reasons. I would appreciate if you could let me know if there is any other way to do it ?

Make sure that you register your own servlet correctly. What you could do is to register it to a certain selector and then do the POST request to /contente/mysite/mypage.myselector.html; then your servlet should be called.

I tried this implementation and I was able to redirect my request to a new page and also I am able to capture the request parameters. But the problem I am facing now is once I redirect it to a new page the page keeps on loading again and again. I am thinking the "Sling Post servlet" or "Default Servlet" is getting called again and again. Did anyone face this issue ?

You can use the "Recent requests" view in the web console ( /system/console/requests) to actually check what the request is internally doing. Every include and every forward is listed there. Should give you insight what's going on.

Thanks for visiting the Klaviyo Community Forum. To create your Community account, please first log into your Klaviyo account with this link. Once logged in, you will be automatically redirected back to this page to finish setting up your new account.

Hi, I moved from aweber yesterday to Klaviyo. Move has been pretty easy, Im just putting the sign up forms on my site, I have found where I put the url for the redirect to a custom page in the list in klaviyo, but as Im testing my form it doesnt redirect? advise please?

So I was expecting that when people sign up that the page would redirect once they hit the sign up button, but it doesnt. The link to the redirect page comes in the email thats sent out to say thanks for subscribing and here click this link.

I have successfully used phx-change along with phx-debounce to save the unique name and minimum length of 3 characters. However, after saving, it does not redirect to the show page.How to achieve the redirection without phx-submit like this?

issuing a push_redirect(socket, to: ...) from the phx-change event should be enough. Do you have a redirect in place? If so, are you seeing any server or js console errors? Can you provide your LV source?

Your handle_event returns the socket unchanged. Remember that elixir is immutable, so your case statement executes, but the socket is not changed because you return the old one afterwards. Update your handle_event to:

I am not sure if someone already posted similar issue/question however I am not able to find related information for my current issue. This is actually my 3rd post on the same question as the previous two was "rejected", not sure where I did wrong.

1. When user submit the form, instead of showing the Incident details, the page will just showing a message. Example: Thank you for visiting xxxxx Lounge. Your ticket is INC00877785. Thank you for your submission.

d3342ee215
Reply all
Reply to author
Forward
0 new messages