blob: 6059f99fdf36189cc30fe8f1ada11acfcb030ffe [file] [log] [blame]
Matteo Scandolo817386b2015-11-04 16:07:09 +01001(function() {
2 'use strict';
3
4 angular
5 .module('xos.helpers')
6 .factory('NoHyperlinks', noHyperlinks);
7
8 function noHyperlinks() {
9 return {
10 request: function(request){
11 if(request.url.indexOf('.html') === -1){
12 request.url += '?no_hyperlinks=1';
13 }
14 return request;
15 }
16 };
17 }
18})();