In meinem Ember App (basierend auf Motoren), ich sehe Hash nicht in der lokalen Host URLEmber App sieht Hash in localhost URL
Ich versuche, hätte in location environment.js Wechsel
location: ‚Hash '
Obwohl das Routing & alles funktioniert gut, frage ich mich nur, wie bekomme ich die # in der Adressleiste URL.
Unten ist mein komplettes environment.js
/*jshint node:true*/
'use strict';
module.exports = function(environment, appConfig) {
console.log(environment);
var ENV = {
modulePrefix: 'myapp-ui',
environment: environment,
rootURL: '/myapp/',
locationType: 'auto',
EmberENV: {
FEATURES: {
// Here you can enable experimental features on an ember canary build
// e.g. 'with-controller': true
},
EXTEND_PROTOTYPES: {
// Prevent Ember Data from overriding Date.parse.
Date: false
}
},
APP: {
// Here you can pass flags/options to your application instance
// when it is created
},
TRACKING_ENABLED: true,
LOG_TRACKING_ENABLED: false,
ROUTE_TRANSITION_TRACKING_ENABLED: false,
LOG_ERROR_TRACKING: true,
ANALYTICS_URL:"X",
ANALYTICS_SITE_ID:0,
STUB_MODE : false,
SET_LOCALE : true
};
if (environment && environment !== 'development') {
ENV.rootURL = "";
}
return ENV;
};
vielleicht haben Sie nur für eine der Umgebungen geändert ? wie Produktion oder Test? – andrusieczko
Nein ... Ich habe überprüft, dass ... – testndtv
vielleicht die relevanten Teile des Codes einfügen, wird es einfacher zu helfen, denke ich. – andrusieczko