Revision 2833

tmp/org.txm.rcp/src/main/java/org/txm/rcp/commands/OpenWelcomePage.java (revision 2833)
49 49
	/** The Constant ID. */
50 50
	public final static String ID = "org.txm.rcp.commands.OpenWelcomePage"; //$NON-NLS-1$
51 51
	
52
	public static String WELCOME = "https://txm.gitpages.huma-num.fr/textometrie/html/welcome/";
52
	public static String WELCOME = "https://txm.gitpages.huma-num.fr/textometrie/";
53 53
	
54 54
	/*
55 55
	 * (non-Javadoc)
......
63 63
	public static boolean openWelcomePage() {
64 64
		
65 65
		try { // ensure network is enable
66
			URL url = new URL(WELCOME+"welcome.html");
66
			URL url = new URL(WELCOME+"index.html");
67 67
			url.openStream().close();
68 68
		}
69 69
		catch (Exception e) {
......
75 75
		int idx = version.lastIndexOf("."); //$NON-NLS-1$
76 76
		if (idx > 0) version = version.substring(0, idx); // remove the "qualifier" part
77 77
		
78
		String urlString = WELCOME + version + "/" + locale + "/welcome.html";
78
		String urlString = WELCOME + locale;
79 79
		try {
80 80
			URL url = new URL(urlString);
81 81
			try {
......
84 84
			catch (IOException e) {
85 85
				Log.finer(e.getMessage());
86 86
				// Log.printStackTrace(e);
87
				urlString = WELCOME + version + "/en/welcome.html";
87
				urlString = WELCOME;
88 88
				url = new URL(urlString);
89 89
			}
90 90
			return OpenBrowser.openfile(urlString) != null;
tmp/org.txm.rcp/src/main/java/org/txm/rcp/commands/OpenLocalizedWebPage.java (revision 2833)
49 49
	public final static String ID = "org.txm.rcp.commands.OpenLocalizedWebPage"; //$NON-NLS-1$
50 50

  
51 51
	public static final String GITPAGES = "https://pages.textometrie.org/";
52
	public static final String URL_TEXTOMETRIE = "https://textometrie.org/"; // = GITPAGES+textometrie
52
	public static final String URL_TEXTOMETRIE = GITPAGES+"textometrie/";
53 53
	public static final String URL_TXMMANUAL = GITPAGES+"txm-manual/";
54 54
	public static final String URL_TXMDEPOT = GITPAGES+"txm-software/";
55 55
	public static final String HTMLPAGES = URL_TEXTOMETRIE + "html/";
......
97 97
			}
98 98
		} catch (Exception e) {
99 99
			Log.severe(e.getMessage());
100
			Log.printStackTrace(e);
100
	//		Log.printStackTrace(e);
101 101
		}
102 102
		return urltoTest;
103 103
	}

Also available in: Unified diff