1
0
mirror of https://git.teknik.io/Teknikode/Teknik.git synced 2023-08-02 14:16:22 +02:00

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

This commit is contained in:
Uncled1023 2016-05-27 15:42:51 -07:00
parent 3abb5bb233
commit 654f684c78
2 changed files with 1 additions and 58 deletions

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" });
}
}
}

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">