Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When using wildcard query string / additional path has gone #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

wma83
Copy link

@wma83 wma83 commented Jul 25, 2014

There was a bug in original code that removed query string when redirecting to new url.
This shouldn't be the case when using wildcard option

string newurl = redirect.NewUrl;
if (redirect.WildCardSkipAppend) //if wildcard, replace the 'old part' of url
{
newurl = urlNotFound.LocalPath.Replace(redirect.OldUrl, redirect.NewUrl);
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this always the desired outcome with wildcard URLs? This expects the URL-structure to be identical on both ends, doesn't it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants