Browse Source

Cleaned up old code and added route ignore for favicon due to browser bug

tags/2.0.3
Teknikode 4 years ago
parent
commit
654f684c78
2 changed files with 1 additions and 58 deletions
  1. 1
    26
      Teknik/App_Start/RouteConfig.cs
  2. 0
    32
      Teknik/Views/Shared/_Layout.cshtml

+ 1
- 26
Teknik/App_Start/RouteConfig.cs View File

@@ -15,32 +15,7 @@ namespace Teknik
public static void RegisterRoutes(RouteCollection routes)
{
routes.IgnoreRoute("{resource}.axd/{*pathInfo}");

//routes.MapMvcAttributeRoutes();
//routes.Add(new SubdomainRoute());

//Map subdomains to specific style of routing
// Development Routing
//routes.MapSubdomainRoute(
// "Dev", // Route name
// "dev." + config.Host, // Domain with parameters
// "{controller}/{action}", // URL with parameters
// new { controller = "Dev", action = "Index" } // Parameter defaults
// );
//// Blog Routing
//routes.MapSubdomainRoute(
// "Blog", // Route name
// "{controller}." + config.Host, // Domain with parameters
// "{username}/{id}", // URL with parameters
// new { controller = "Blog", action = "Index" } // Parameter defaults
// );

//routes.MapRoute(
// name: "Default",
// url: "{controller}/{action}",
// defaults: new { controller = "Home", action = "Index" },
// namespaces: new[] { "Teknik.Controllers" }
//);
routes.IgnoreRoute("{*favicon}", new { favicon = ".*/favicon\\.ico" });
}
}
}

+ 0
- 32
Teknik/Views/Shared/_Layout.cshtml View File

@@ -5,32 +5,6 @@
<!DOCTYPE html>
<html>
<head>
@if (Model.Config.PiwikConfig.Enabled)
{
string sub = Request.RequestContext.RouteData.Values["sub"].ToString();
if (Model.Config.DevEnvironment)
{
sub = "dev - " + sub;
}

<!-- Piwik -->
@*<script type="text/javascript">
var _paq = _paq || [];
_paq.push(["setDocumentTitle", "@sub/@ViewBag.Title"]);
_paq.push(["setCookieDomain", "*.teknik.io"]);
_paq.push(["setDomains", ["*.teknik.io"]]);
_paq.push(['trackPageView']);
_paq.push(['enableLinkTracking']);
(function() {
var u="//stats.teknik.io/";
_paq.push(['setTrackerUrl', u+'piwik.php']);
_paq.push(['setSiteId', 1]);
var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
g.type='text/javascript'; g.async=true; g.defer=true; g.src=u+'piwik.js'; s.parentNode.insertBefore(g,s);
})();
</script>*@
<!-- End Piwik Code -->
}
<script type="text/javascript">
var startTime = new Date();
</script>
@@ -58,12 +32,6 @@
</div>
<!-- NoScript Alert -->
<noscript>
@*@if (Model.Config.PiwikConfig.Enabled)
{
<!-- Piwik Image Tracker-->
<img src="https://stats.teknik.io/piwik.php?idsite=1&rec=1" style="border:0" alt="" />
<!-- End Piwik -->
}*@
<div class="container">
<div class="row">
<div class="col-xs-12 text-center">

Loading…
Cancel
Save