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
Hi guys,
how can I depend the redirect to a certain doctype.
Example:
angular.module('umbraco.services').config([ '$httpProvider', function ($httpProvider) { $httpProvider.interceptors.push(function ($q) { return { 'request': function (request) { if(ONLY CERTAIN DOCTYPE) <- here I don't know how to determine the doctype { if (request.url.toLowerCase().indexOf('footer-content-right') !== -1) { if (location.href.indexOf('content') !== -1) { request.url = '/App_Plugins/tweaks/views/newsletterButtons.html'; } } } return request || $q.when(request); } }; }); }]);
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
$httpProvider Interceptor for certain DocumentTypes
Hi guys,
how can I depend the redirect to a certain doctype.
Example:
is working on a reply...