Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Is this possible? Thought it'd be pretty cool if there's only 1 result to just load it straight up.
Yes this would be possible... but you'd do it with a non-cached redirect of some sort I suspect.
So you'd do the search, find out if there is a result. If there is, return the redirect to the page with the no-cache header to stop browser caching.
Ok cool!
I've got this so far which works, and I just jammed this into the macro partial;
if (results.Count == 8) { Response.Redirect("https://www.google.com"); }
that much works, but need to look into the non-cached redirect as I'm not sure what that is.
So I just tried the route of copying an existing helper & just redirecting it to this helper if there's only 1 result, then pushing you onto the result.Url, but couldn't get anything, I'm not going to keep trying as it was only a small ask. :)
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Load result if theres only 1
Is this possible? Thought it'd be pretty cool if there's only 1 result to just load it straight up.
Yes this would be possible... but you'd do it with a non-cached redirect of some sort I suspect.
So you'd do the search, find out if there is a result. If there is, return the redirect to the page with the no-cache header to stop browser caching.
Ok cool!
I've got this so far which works, and I just jammed this into the macro partial;
that much works, but need to look into the non-cached redirect as I'm not sure what that is.
So I just tried the route of copying an existing helper & just redirecting it to this helper if there's only 1 result, then pushing you onto the result.Url, but couldn't get anything, I'm not going to keep trying as it was only a small ask. :)
is working on a reply...