<commit_before>﻿@model Sdl.Web.Common.Models.WebPage
@{
    string edit = Request.QueryString["edit"];
    var redirectUrl = Model.Meta.ContainsKey("externalLink") ? Model.Meta["externalLink"] : (Model.Meta.ContainsKey("internalLink") ? Model.Meta["internalLink"] : null);
    if (edit == null)
    {
        if (!String.IsNullOrEmpty(redirectUrl))
        {
            Response.Redirect(redirectUrl, true);
        }
    }
    else
    {
        <strong>Redirect: @redirectUrl</strong>
    }
}<commit_msg>Fixed RedirectPage.cshtml so that it does not redirect when no redirect URL - this means it can be used when redirects created in XPM (TSI-463)<commit_after>﻿@model Sdl.Web.Common.Models.WebPage
@{
    string edit = Request.QueryString["edit"];
    var redirectUrl = Model.Meta.ContainsKey("externalLink") ? Model.Meta["externalLink"] : (Model.Meta.ContainsKey("internalLink") ? Model.Meta["internalLink"] : null);
    if (edit == null && !String.IsNullOrEmpty(redirectUrl))
    {
        Response.Redirect(redirectUrl, true);
    }
    else
    {
        <strong>@Html.Resource("core.redirectEditorHintText"): @(redirectUrl)</strong>
    }
}
{'fraction_non_alphanumeric': 0.144473455178416, 'fraction_numerical': 0.0026109660574412533, 'mean_word_length': 3.5634920634920637, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5554857', 'n_tokens_mistral': 342, 'n_tokens_neox': 341, 'n_words': 66}