Score:0

check if a page has been redirected and then add a class to a certain div

ms flag

Im using the redirect module to redirect /page/scheduling to /page.

I need to check if the user arrived to a certain page by this redirect.

by checking this i will then add a class to a certain div.

How can I accomplish this?

Score:1
ne flag

Instead of redirecting to /page you redirect to /page?hello=world then you can check in JS for that URL query param and fire your magic.

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.